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

Show VB msgbox in front of Excel worksheet.

Status
Not open for further replies.

basepointdesignz

Programmer
Jul 23, 2002
566
GB
Is there any way to show a VB msgbox in front of an Excel worksheet?

In my app I have a menu click to open an Excel worksheet, which then becomes the active window. What I want to do is display a msgbox (from my program) in front of the worksheet.

What I don't want to do is create the msgbox from within excel, as a macro, as the worksheet could be updated at any time in he future (If the worksheet is a new updated version, done by the user, he/she can replace the file in the necessary folder so the menu click will load the new one - the user will not know how to create macros in excel)

Any ideas?

Renegade
 
You could minimize Excel before showing the msgbox and maximize it afterwards.
 
You can achieve that by specifying style of message box:

MsgBox "Push OK button",vbOKOnly + &H1000

&H1000 is constant which makes message box system modal dialog.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top