回答編集履歴
1
コード追記
test
CHANGED
@@ -14,8 +14,6 @@
|
|
14
14
|
|
15
15
|
Do until c.Value ="" '空欄になるまで繰り返し
|
16
16
|
|
17
|
-
|
18
|
-
|
19
17
|
'略
|
20
18
|
|
21
19
|
|
@@ -28,8 +26,28 @@
|
|
28
26
|
|
29
27
|
'略
|
30
28
|
|
31
|
-
|
32
|
-
|
33
29
|
Loop
|
34
30
|
|
35
31
|
```
|
32
|
+
|
33
|
+
For Each ... Next を使うコード例
|
34
|
+
|
35
|
+
```vba
|
36
|
+
|
37
|
+
Dim c As Range
|
38
|
+
|
39
|
+
For Each c In Range(Cells(1, 1), Cells(Rows.Count, 1).End(xlUp))
|
40
|
+
|
41
|
+
'略
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
SendKeys c.Value
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
'略
|
50
|
+
|
51
|
+
Next
|
52
|
+
|
53
|
+
```
|