回答編集履歴

1

コード追記

2021/09/25 09:31

投稿

hatena19
hatena19

スコア34075

test CHANGED
@@ -19,3 +19,27 @@
19
19
  End With
20
20
 
21
21
  ```
22
+
23
+
24
+
25
+ または、
26
+
27
+
28
+
29
+ ```vba
30
+
31
+ Dim Hani(4) As Range
32
+
33
+ Dim i As Long
34
+
35
+ With ws.Range("A1:A" & 14)
36
+
37
+ For i = 0 To 4
38
+
39
+ Set Hani(i) = .Offset(0, i)
40
+
41
+ Next
42
+
43
+ End With
44
+
45
+ ```