回答編集履歴
1
追記
test
CHANGED
@@ -35,3 +35,29 @@
|
|
35
35
|
End Sub
|
36
36
|
|
37
37
|
```
|
38
|
+
|
39
|
+
---
|
40
|
+
|
41
|
+
<追記>
|
42
|
+
|
43
|
+
```VBA
|
44
|
+
|
45
|
+
Function SetDict(ByVal default_array As Range) As Object
|
46
|
+
|
47
|
+
Set SetDict = CreateObject("Scripting.Dictionary")
|
48
|
+
|
49
|
+
Dim arr, i
|
50
|
+
|
51
|
+
arr = default_array.Value
|
52
|
+
|
53
|
+
For i = 1 To UBound(arr)
|
54
|
+
|
55
|
+
SetDict.Item(arr(i, 1)) = arr(i, 2)
|
56
|
+
|
57
|
+
Next
|
58
|
+
|
59
|
+
End Function
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
```
|