I used this in Excel and it works fine.
dim varScreen (0 to 2) as string
varScreen(0) = "sample 1"
varScreen(1) = "sample 2"
varScreen(2) = "sample 3"
I am trying to translate this array to VBScript but I keep getting this error:
Line: 14
Error: Expected ')'
I have tried various options, removed as string, dim varScreen as array but I still get the error.
What is the proper syntax?
varScreenand(0 to 2). There should not be.