Skip to content

Instantly share code, notes, and snippets.

@opponitur
opponitur / DoWhileLoop.bas
Last active July 29, 2016 08:14
Excel VBA Do While ループ
Dim i As Long
i = 1
Do While Cells(i, C) <> "foo" 'Cells(i, C)の値がfooでない時に何かの処理を行う
{処理something}
i = i + 1 'iをインクリメント
Loop
@opponitur
opponitur / snip.bas
Last active July 29, 2016 08:18
Excel VBA 全角半角判定
If Len(Cells(R, C)) = LenB(StrConv(Cells(R, C), vbFromUnicode)) Then
' {Cells(R, C)にある文字列が半角だった時の処理}
Else
' {Cells(R, C)にある文字列が全角だった時の処理}
End If
//atom-sync-settings