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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get a msgbox to display in the foreground

Status
Not open for further replies.

mcinernj

Programmer
Jul 30, 2004
4
CA
I am running a VBA program. During this program I am doing a check of something...depending on the result I wish to present the user with a vbYesNo msgbox. This works but it shows in the Task Bar. I want this message to popup in front of them.

Any ideas?

Thanks,
Jeff
 
You may consider the AppActivate instruction.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
The macro that I am running is Shipping.AVB and within it I have the following...

iResponse = MsgBox("Previous processing of " & sNewFileName & " was not completed...finish processing now?", vbYesNo)

This is the msgbox that shows in the task bar. How would I use AppActivate in this situation?
 
In which application is running the VBA code ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
if MsgBox(YourPrompt, vbYesNo) = vbYes then <Do Yes stuff> else <Do No stuff>

DarkMain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top