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")
 
E

Emma Aumack

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
 
Top