MessageBox - simple problem

Billm

Board Regular
Joined
Mar 19, 2002
Messages
88
I have a messageBox popup that works fine when the focus ( my cursor) is on Excel .. however .. if I am using another windows programme .. and the excel condition is met whereby the MessageBox should popup .. ie an alert .. then it doesnt .. instead the Excel icon just flashes at the bottom of the screen. When I click on Excel .. the messagebox appears.

Is there any way of making the messagebox popup on the excel worksheet even when I am in another application .. as users are missing this message .. which is understandable cos its not that apparent if they are busy.

Thanks
Bill
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Bit of a shot in the dark here, but see what happens if you put
Application.visible = False
to hide Excel before the msgbox code and then
Application.visible = True
afterwards to bring it back.

I'm guessing (wildly) that the msgbox will still have to appear somewhere even if the Excel application is not visible, and will therefore head for the very front of the screen.

Rgds
AJ
 
Upvote 0
I don't know if this will work because I don't have a quick way to send data to excel externally.

Anyway, I would try putting a line like this before your msgbox:

<pre>
Windows("Book1.xls").Activate</pre>

HTH
 
Upvote 0

Forum statistics

Threads
1,213,565
Messages
6,114,338
Members
448,570
Latest member
rik81h

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