Is it possible to assign values to variables dynamically.
Ex: Dim txt1 as Variant, txt2 as Variant
For i = 1 to 2
"txt" & i = i (****)
next
(****) I get the following error in this line
"Expected: Line number or label or statement or end of statement"
Can somebody give me a solution.
Thanks
Ex: Dim txt1 as Variant, txt2 as Variant
For i = 1 to 2
"txt" & i = i (****)
next
(****) I get the following error in this line
"Expected: Line number or label or statement or end of statement"
Can somebody give me a solution.
Thanks