VBA: Dictionary items to string array? -
what trying straightforward. want list of items (values) in dictionary
, , save them in array of strings.
i'd guess code work:
sub printfilters(byval crit dictionary) dim i() string = crit.items() ' stuff end sub
however, getting type mismatch on third line. guessing crit.items()
's return value kind of list, not array. msdn pages not mention method's return value's type is, though.
is there proper way this?
i think variant type try this:
sub printfilters(byval crit dictionary) dim variant = crit.items() ' stuff end sub
Comments
Post a Comment