Solved

VBscript Call Sub using a variable

Posted on 2009-04-07
2
441 Views
Last Modified: 2012-05-06
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
Comment
Question by:JesseWH
2 Comments
 
LVL 2

Accepted Solution

by:
AlvinLim84 earned 250 total points
ID: 24084993

intCount = 1

objTest = "test" & intCount & "Sub"
 

Execute objTest
 

Sub test1Sub

wscript.echo "Sucess!!!"

End Sub

Open in new window

0
 

Author Closing Comment

by:JesseWH
ID: 31567394
Your the man! Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Script to copy or move mouse-selected collection of files plus targets referenced by shortcuts (.lnk) The purpose of this article is to help illuminate the real challenges and options available (where they may exist) for utilizing simple scriptin…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now