Solved

VBscript Call Sub using a variable

Posted on 2009-04-07
2
440 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
Comment Utility

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
Comment Utility
Your the man! Thanks!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
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…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 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

9 Experts available now in Live!

Get 1:1 Help Now