Hi,
I want to auto-create variables inside a for loop like the example below but it doesn't work. Please Help!!!!!!.
Here is the code I tried:
For i = 1 to 60
If eval("x" & i) <> "" Then
eval("y" & i) = "String"
End if
Next
I tried this also
For i = 1 to 60
If eval("x" & i) <> "" Then
execute("y" & i) = "String"
End if
Next
Here is the error I get
Type mismatch: 'eval'
or
Type mismatch: 'execute'
Help please
Thanks
I want to auto-create variables inside a for loop like the example below but it doesn't work. Please Help!!!!!!.
Here is the code I tried:
For i = 1 to 60
If eval("x" & i) <> "" Then
eval("y" & i) = "String"
End if
Next
I tried this also
For i = 1 to 60
If eval("x" & i) <> "" Then
execute("y" & i) = "String"
End if
Next
Here is the error I get
Type mismatch: 'eval'
or
Type mismatch: 'execute'
Help please
Thanks