「VBA」Splitで配列の空文字要素を取得するサンプル
書式
変数名="文字列1,文字列2,,"
使用例
Sub funcTest()
Dim cft As Variant
Dim res As String
res = "A01, B02, C03,,,"
cft = Split(res, ",")
For Each bb In cft
Debug.Print bb
Next
Debug.Print UBound(cft) + 1
End Sub
結果
A01 B02 C03 空文字 空文字 空文字