troubleshooting Question

VB Code to populate data in a URL

Avatar of Alwayslearningmore
Alwayslearningmore asked on
Scripting LanguagesVB Script
2 Comments1 Solution141 ViewsLast Modified:
Trying to create a VB script that will prompt a user to put input data, this data then will populate into parts of a url so that it goes to the correct page.

Managed to get a prompt box for user data to appear but i can get this data to populate in the middle of a URL. i'm sure the code is wrong and needs to be change or is there an easy way around this?
Code below, basically where the strAnswer is in the url i need the data to populate.  Any suggestions would be nice :)

strAnswer = InputBox _
        ("Enter your Data here","This is your Case Number")

Set objExplorer = CreateObject _

strURL = "http://MYIPADDRESS/servlet?key=number=&strAnswer&outgoing_uri=SOMETHINGAWESOME"
objExplorer.Navigate strURL
objExplorer.ToolBar = 0
objExplorer.StatusBar = 0
objExplorer.Width = 800
objExplorer.Height = 800
objExplorer.Visible = 1
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros