Solved

VBscript Call Sub using a variable

Posted on 2009-04-07
2
446 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: 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

Recently I finished a vbscript that I thought I'd share.  It uses a text file with a list of server names to loop through and get various status reports, then writes them all into an Excel file.  Originally it was put together for our Altiris server…
This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

636 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