Call msbox from a module

J

John Spencer

Simplest code

Msgbox "This is a message",,"This is the Title"

If you want to trap the answer

Dim iResponse as integer

iResponse = Msgbox("This is a message", vbYesNo,"Answer the question")
 
G

Guest

If I had an if statement where I had to trap the response would it look like:

If iResponse = vbyes

or

if iResponse = true
--
www.bardpv.com
Tempe, Arizona


John Spencer said:
Simplest code

Msgbox "This is a message",,"This is the Title"

If you want to trap the answer

Dim iResponse as integer

iResponse = Msgbox("This is a message", vbYesNo,"Answer the question")
 
J

John Spencer

Yes, I could have expanded on the suggestion. I chose not to because the
poster had not given any specifics on what they needed to do.

Emma Aumack said:
If I had an if statement where I had to trap the response would it look
like:

If iResponse = vbyes

or

if iResponse = true
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top