Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variables In a Message Box

Status
Not open for further replies.

bigdubbe

Programmer
May 26, 2006
11
US
I was wondering if there was anyway to put a user define variable from answer given perviously in a dialog box, in a popup box.
 
Not sure I understand what your getting at, can you give us more info?


try

uservar = InputBox("give me a variable")
msgbox uservar


[thumbsup2] Wow, I'm having amnesia and deja vu at the same time.
I think I've forgotten this before.


 
If you want to be able to change it:
Code:
oldVar = InputBox("Your variable","Title",oldVar)

If you just want to display it:
Code:
msgbox "This is your variable: " & oldVar
 
I am crappy at explain what I want but you guys always come through. Worked great thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top