質問編集履歴
2
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,6 +26,8 @@
|
|
26
26
|
|
27
27
|
### 該当のソースコード
|
28
28
|
|
29
|
+
```ここに言語名を入力
|
30
|
+
|
29
31
|
Private Sub CommandButton1_Click()
|
30
32
|
|
31
33
|
|
@@ -48,55 +50,47 @@
|
|
48
50
|
|
49
51
|
|
50
52
|
|
51
|
-
|
53
|
+
Worksheets(1).Activate
|
52
54
|
|
53
|
-
|
55
|
+
On Error Resume Next
|
54
56
|
|
55
|
-
|
57
|
+
Range(Cells(5 + i, 3), Cells(5 + i, 8)).Copy
|
56
58
|
|
57
|
-
|
59
|
+
shName = Cells(5 + i, 2).Value
|
58
60
|
|
59
|
-
shName = Cells(5 + i, 2).Value
|
60
|
-
|
61
|
-
|
61
|
+
If shName = vbNullString Then Exit Sub
|
62
62
|
|
63
63
|
|
64
64
|
|
65
|
-
|
65
|
+
Sheets(shName).Activate
|
66
|
-
|
67
|
-
|
68
66
|
|
69
67
|
|
70
68
|
|
71
|
-
|
69
|
+
Set j = Range(Cells(38, 1), Cells(97, 1)).Find(What:=Cells(1, 10).Value)
|
72
70
|
|
73
71
|
|
74
72
|
|
75
|
-
|
73
|
+
If j Is Nothing Then
|
76
74
|
|
77
|
-
|
75
|
+
MsgBox "見つかりませんでした。"
|
78
76
|
|
79
|
-
|
77
|
+
End If
|
80
78
|
|
81
|
-
|
82
79
|
|
83
|
-
Cells(j.Row, "B").Select
|
84
80
|
|
85
|
-
|
81
|
+
Cells(j.Row, "B").Select
|
86
82
|
|
87
|
-
|
83
|
+
ActiveCell.PasteSpecial Paste:=xlPasteValues
|
88
84
|
|
89
|
-
i = i + 1
|
90
85
|
|
91
|
-
Loop
|
92
86
|
|
93
|
-
|
87
|
+
i = i + 1
|
88
|
+
|
89
|
+
Loop
|
90
|
+
|
91
|
+
|
94
92
|
|
95
93
|
End Sub
|
96
|
-
|
97
|
-
```ここに言語名を入力
|
98
|
-
|
99
|
-
ソースコード VBA
|
100
94
|
|
101
95
|
|
102
96
|
|
1
タイトルの修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
VBAの動作不良について教えてください。
|
test
CHANGED
File without changes
|