Solved

VBscript Call Sub using a variable

Posted on 2009-04-07
2
444 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

735 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