回答編集履歴

1

元々のコードに対する補足を追記

2021/04/06 14:20

投稿

xail2222
xail2222

スコア1497

test CHANGED
@@ -61,3 +61,61 @@
61
61
 
62
62
 
63
63
  という感じなのですが、使えないでしょうか!
64
+
65
+
66
+
67
+ あ、後参考までに
68
+
69
+ ```VBA
70
+
71
+ Dim BBkey As Variant, BBitem As Variant
72
+
73
+ BBkey = myDictionary.keys
74
+
75
+ BBitem = myDictionary.items
76
+
77
+
78
+
79
+ Dim cd As Long
80
+
81
+ cd = 6018
82
+
83
+
84
+
85
+ 'cdのBBkeyのインデックスを調べる。
86
+
87
+ Dim cdIndex As Long
88
+
89
+ For cdIndex = 0 To UBound(BBkey)
90
+
91
+ If (BBkey(cdIndex) = cd) Then
92
+
93
+ Exit For
94
+
95
+ End If
96
+
97
+ Next cdIndex
98
+
99
+
100
+
101
+ Debug.Print Application.WorksheetFunction.Min(BBitem(cdIndex))
102
+
103
+ ```
104
+
105
+ とやってますが、これは
106
+
107
+
108
+
109
+ ```VBA
110
+
111
+ Dim cd As Long
112
+
113
+ cd = 6018
114
+
115
+ Debug.Print Application.WorksheetFunction.Min(myDictionary.item(cd))
116
+
117
+ ```
118
+
119
+
120
+
121
+ これと同じことです! のはずです!