回答編集履歴
1
追記
test
CHANGED
@@ -21,3 +21,29 @@
|
|
21
21
|
Next
|
22
22
|
|
23
23
|
```
|
24
|
+
|
25
|
+
---
|
26
|
+
|
27
|
+
こうすると多少速いかも。
|
28
|
+
|
29
|
+
```VBA
|
30
|
+
|
31
|
+
Dim u As Range, i As Long
|
32
|
+
|
33
|
+
Set u = ws2.Rows(arr(1))
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
For i = 1 To UBound(arr)
|
38
|
+
|
39
|
+
Set u = Union(u, ws2.Rows(arr(i)))
|
40
|
+
|
41
|
+
Next
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
ws1.Rows(2).Resize(UBound(arr)).Insert
|
46
|
+
|
47
|
+
Union(u.Columns("A:A"), u.Columns("C:E")).Copy ws1.Cells(2, 1)
|
48
|
+
|
49
|
+
```
|