1

hard coding array manipulation in c based languages is common, like below:

int i[] = new i[2][2];
i = {{1,1},{2,2}};

how it could be done in vba scripts?

0

1 Answer 1

3

I think you can use the Array() function to build an array of values.

I haven't tried it, but I suspect you could do what you want with this:

Dim i as Variant
i = Array(Array(1, 1), Array(2, 2))

It's been a while, so my VBA is a bit rusty.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.