Solved

VBscript Call Sub using a variable

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
A script to extract the important data and calculate if the amounts are correct 12 72
Problem to open text file 11 128
Everything left of comma in excel 4 45
CREATE DATABASE 3 28
This is an addendum to the following article: Acitve Directory based Outlook Signature (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_24950055.html) The script is fine, and works in normal client-server domains…
Well hello again!  Glad to see you've made it this far without giving up.  In this, the fourth installment of my popular series, I'm going to cover functions and subroutines, what they are, and why they are useful.  Just in case you stumbled onto th…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

839 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