回答編集履歴
3
コード修正
test
CHANGED
@@ -22,12 +22,14 @@
|
|
22
22
|
|
23
23
|
Dim wb1 As Workbook
|
24
24
|
|
25
|
-
Set wb1 = Workbooks(
|
25
|
+
Set wb1 = Workbooks.Open(filePath)
|
26
26
|
|
27
27
|
|
28
28
|
|
29
29
|
wb1.Activate
|
30
30
|
|
31
|
-
Worksheets(Array(wb1.Worksheets(2).Name, wb1.Worksheets(8).Name)).Move
|
31
|
+
Worksheets(Array(wb1.Worksheets(2).Name, wb1.Worksheets(8).Name)).Move _
|
32
|
+
|
33
|
+
Before:=wb.Sheets(2)
|
32
34
|
|
33
35
|
```
|
2
コード修正
test
CHANGED
@@ -28,6 +28,6 @@
|
|
28
28
|
|
29
29
|
wb1.Activate
|
30
30
|
|
31
|
-
Worksheets(Array(wb1.Worksheets(2).Name, wb1.Worksheets(8).Name)).
|
31
|
+
Worksheets(Array(wb1.Worksheets(2).Name, wb1.Worksheets(8).Name)).Move Before:=wb.Sheets(2)
|
32
32
|
|
33
33
|
```
|
1
コード修正
test
CHANGED
@@ -28,6 +28,6 @@
|
|
28
28
|
|
29
29
|
wb1.Activate
|
30
30
|
|
31
|
-
Worksheets(Array(
|
31
|
+
Worksheets(Array(wb1.Worksheets(2).Name, wb1.Worksheets(8).Name)).Copy.Move Before:=wb.Sheets(2)
|
32
32
|
|
33
33
|
```
|