Hi.
This is a VBA program in Excel, but I hope someone could still help me??!!
I've got an array that contains 6 Strings.
I declare it as follows:
Dim MyArray As String
MyArray = Array(BG1, BG2, BG3, BG4, BG5, CP1)
I also have a block of code that performs a certain task. I want the program to perform this task based upon all 6 strings i.e.
For Each [element in the array]
Do this
Do that
Next [element in the array]
But I'm just getting some weird variable error!
Any ideas anyone????
Thanks,
D
This is a VBA program in Excel, but I hope someone could still help me??!!
I've got an array that contains 6 Strings.
I declare it as follows:
Dim MyArray As String
MyArray = Array(BG1, BG2, BG3, BG4, BG5, CP1)
I also have a block of code that performs a certain task. I want the program to perform this task based upon all 6 strings i.e.
For Each [element in the array]
Do this
Do that
Next [element in the array]
But I'm just getting some weird variable error!
Any ideas anyone????
Thanks,
D