Assuming, for simplicity sake, that key and item values are the same, is there a way to sort the values in a dictionary object that has been populated ramdonly? For instance, the following code will show the values unsortered:
If the values were
c, c
h, h
e, e
a, a
p, p
m, m
Then the output will be:
c h e a p m
It looks like any of the methods associated with the dictionary object will sort the values.
Any thoughts?
Thanks!!
Code:
For each x in objDict
vOut = vOut & x & " "
Next
MsgBox vOut
c, c
h, h
e, e
a, a
p, p
m, m
Then the output will be:
c h e a p m
It looks like any of the methods associated with the dictionary object will sort the values.
Any thoughts?
Thanks!!