Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 448
  • Last Modified:

VBscript Call Sub using a variable

Looking to do something like the below code.
intCount = 1
Set objTest = "test" & intCount & "Sub"
 
Sub test1Sub
wscript.echo "Sucess!!!"
End Sub

Open in new window

0
JesseWH
Asked:
JesseWH
1 Solution
 
AlvinLim84Commented:

intCount = 1
objTest = "test" & intCount & "Sub"
 
Execute objTest
 
Sub test1Sub
wscript.echo "Sucess!!!"
End Sub

Open in new window

0
 
JesseWHAuthor Commented:
Your the man! Thanks!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now