回答編集履歴

1

空行対応

2018/06/28 05:31

投稿

ttyp03
ttyp03

スコア16998

test CHANGED
@@ -16,17 +16,23 @@
16
16
 
17
17
  cols = Split(buf, ",")
18
18
 
19
- ' 先頭数値なら
19
+ ' 分解した列数1つ以上
20
20
 
21
- If IsNumeric(cols(0)) Then
21
+ If UBound(a) >= 0 Then
22
22
 
23
- ' ワークシートに書き出し
23
+ ' 先頭が数値なら
24
24
 
25
- Worksheets("Sheet1").Cells(R, 1).Value = cols(0)
25
+ If IsNumeric(cols(0)) Then
26
26
 
27
- ' 出力行をインリメン
27
+ ' ワーシーに書き出し
28
28
 
29
+ Worksheets("Sheet1").Cells(R, 1).Value = cols(0)
30
+
31
+ ' 出力行をインクリメント
32
+
29
- R = R + 1
33
+ R = R + 1
34
+
35
+ End If
30
36
 
31
37
  End If
32
38