Stay on Top Message window

miguems

New Member
Joined
Nov 7, 2005
Messages
9
Hello:

Is there a way to have a MsgBox Stay on top while the user goes to a different application?. I've design a macro that pops a message giving the user some information needed to find a value they will need to input so the macro can continue to run. It would help them if this message could "stay on top" while they switch applications.

I've seen this:

OnTop = SetWindowPos(FrmID.hWnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS)

But I have no idea if this is what I'm looking for or how to blend it with a MsgBox.

Thank you for your time.

M.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
I don't know

you may be better off using a UserForm as a de facto MsgBox instead. On a UserForm, if you have set the "ShowModal" property to False, it will allow you to do what you're wanting to do while continuing to use Excel, but you said "another application"/not Excel. And I do not think the UserForm will stay up while in another application (although, I believe it will be just where you left it when you return to Excel).

I'm throwing out there, but this may be of no use to you due to the "other application" thing.
 
Upvote 0
- thanks

Thanks BK, but yes, they do need to switch applications, they need to input the information fron the MsgBox to a web site form. I'm afraid they close the MsgBox by mistake and have to start all over and besides, it will be a lot easier if it stays on top, right? :)

Thanks anyways

M.
 
Upvote 0

Forum statistics

Threads
1,214,885
Messages
6,122,090
Members
449,065
Latest member
Danger_SF

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top