回答編集履歴
1
元々のコードに対する補足を追記
answer
CHANGED
@@ -29,4 +29,33 @@
|
|
29
29
|
|
30
30
|
```
|
31
31
|
|
32
|
-
という感じなのですが、使えないでしょうか!
|
32
|
+
という感じなのですが、使えないでしょうか!
|
33
|
+
|
34
|
+
あ、後参考までに
|
35
|
+
```VBA
|
36
|
+
Dim BBkey As Variant, BBitem As Variant
|
37
|
+
BBkey = myDictionary.keys
|
38
|
+
BBitem = myDictionary.items
|
39
|
+
|
40
|
+
Dim cd As Long
|
41
|
+
cd = 6018
|
42
|
+
|
43
|
+
'cdのBBkeyのインデックスを調べる。
|
44
|
+
Dim cdIndex As Long
|
45
|
+
For cdIndex = 0 To UBound(BBkey)
|
46
|
+
If (BBkey(cdIndex) = cd) Then
|
47
|
+
Exit For
|
48
|
+
End If
|
49
|
+
Next cdIndex
|
50
|
+
|
51
|
+
Debug.Print Application.WorksheetFunction.Min(BBitem(cdIndex))
|
52
|
+
```
|
53
|
+
とやってますが、これは
|
54
|
+
|
55
|
+
```VBA
|
56
|
+
Dim cd As Long
|
57
|
+
cd = 6018
|
58
|
+
Debug.Print Application.WorksheetFunction.Min(myDictionary.item(cd))
|
59
|
+
```
|
60
|
+
|
61
|
+
これと同じことです! のはずです!
|