Hey guys,
I have a variable length array in VBA whose number of elements will change with usage. For example:
I would like to count the number of occurances of each element within the array and then return both the element and its count in a msgbox. For example
I've searched the forums but could not find a similar solution.
Any advice would be greatly appreciated!
I have a variable length array in VBA whose number of elements will change with usage. For example:
Code:
[ Apple, Orange, Banana, Banana, Apple, Banana ]
Code:
MsgBox
Apple x 2
Orange x 1
Banana x 3
Any advice would be greatly appreciated!