Thread: Array question
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Karsten Jung Karsten Jung is offline
external usenet poster
 
Posts: 3
Default Array question

Hello together.

How can I create an assoc array in excel via vba?

Should be something like this:

myArray("cats") = 1
myArray("dogs") = 2

I have the "Collection" but it's very poor. I cannot reset the value
there, e.g.

Dim c as New Collect
c.Add "1", "dogs"

c.Items("dogs") = c.Items("dogs") + 1 'Will NOT work, but I have the
change this values.

Can anybody help me?

Thanks a lot!