Avatar of Alwayslearningmore
Alwayslearningmore
 asked on

VB Code to populate data in a URL

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 _
    ("InternetExplorer.Application")

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
VB ScriptScripting Languages

Avatar of undefined
Last Comment
Alwayslearningmore

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Ryan Chong

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Alwayslearningmore

ASKER
Thanks, that looks like it works,
I just needed the user's input to end up where StrAnswer was in the URL which was a phone number :)
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy