回答編集履歴

1

コード修正

2021/11/06 05:07

投稿

hatena19
hatena19

スコア34075

test CHANGED
@@ -8,17 +8,13 @@
8
8
 
9
9
 
10
10
 
11
- Dim dcdname As Object, dccount As Object
11
+ Dim dcdname As Object
12
12
 
13
- Dim i, j
13
+ Dim i
14
-
15
- Dim Cnt As Long
16
14
 
17
15
  Dim mRow As Long
18
16
 
19
17
  Dim dname As String
20
-
21
- Dim myKey As Variant
22
18
 
23
19
  Dim list As Variant
24
20
 
@@ -54,7 +50,7 @@
54
50
 
55
51
  'A列を配列格納
56
52
 
57
- list = .Range("A1:A" & mRow).Value
53
+ list = .Range("O1:O" & mRow).Value
58
54
 
59
55
 
60
56
 
@@ -96,15 +92,13 @@
96
92
 
97
93
  '配列をO列に反映
98
94
 
99
- .Range("B1:B" & mRow) = list
95
+ .Range("O1:O" & mRow) = list
100
96
 
101
97
 
102
98
 
103
99
  '配列解放
104
100
 
105
101
  Set dcdname = Nothing
106
-
107
- Set dccount = Nothing
108
102
 
109
103
 
110
104