回答編集履歴

1

コード修正

2021/06/27 11:32

投稿

hatena19
hatena19

スコア34075

test CHANGED
@@ -14,9 +14,13 @@
14
14
 
15
15
  Dim cnt As Long
16
16
 
17
- cnt = UBound(ary)
17
+ cnt = UBound(ary) + 1
18
18
 
19
-
19
+ If cnt = 0 Then Exit Sub
20
+
21
+
22
+
23
+ Debug.Print cnt
20
24
 
21
25
  With Worksheets(2)
22
26
 
@@ -28,8 +32,6 @@
28
32
 
29
33
  End With
30
34
 
31
-
32
-
33
35
  End Sub
34
36
 
35
37
  ```