03Explorer
Technical User
I want to have an array that has 5 deep with x values (so it would be V=0-4 and X = open ended)
Here is what I have currently
I get the error "Script out of range" when I get to the first line below the Case "cboCRM".
Am I declaring the GlobalArray incorrectly?
Here is what I have currently
Code:
Public GlobalArray() As Variant
Code:
Function ObtainOldWorldData()
Dim OldRoles As Variant
Dim vItem As Variant
OldRoles = Array("cboCRM", "cboPM1", "cboPM2", "cboLC1", "cboLC2", "cboSM1", "cboSM2", "cboSC1", "cboSC2", "cboSC3", "cboCO1", "cboCO2", "cboCO3", "cboAN1", "cboAN2", "cboAN3")
V=0
For Each vItem In OldRoles
Select Case vItem
Case "cboCRM"
GlobalArray(V, 0) = vItem
GlobalArray(V + 1, 0) = "CRM"
GlobalArray(V + 2, 0) = 7
end select
NEXT
I get the error "Script out of range" when I get to the first line below the Case "cboCRM".
Am I declaring the GlobalArray incorrectly?