ALERT Pop up Box

M

mellowe

Hi All

I am running a macro that calculates and produces several workbooks for
a number of people. What I would like to do is have a pop up box appear
on each of their computers just before the macro is ran to ask them to
"Get out of their workbooks as the macro is about to be ran".

Is this possible? Thnkx
 
D

Dave Peterson

Maybe you can add something like this at the start of your code:

Dim Resp As Long

Resp = MsgBox(Prompt:="Is your workbook closed so the macro can continue", _
Buttons:=vbYesNo)

If Resp = vbNo Then
Exit Sub
End If
 
M

mellowe

Thanks Dave for the response and this does work but only to whomever is
running the macro. Is there a way for me to run the macro from my
machine but have the message pop up on other's computers - so that they
can come out of the relevant workbooks so that my macro can run?
 
D

Dave Peterson

Ahhh. I see.

Not that I know.
Thanks Dave for the response and this does work but only to whomever is
running the macro. Is there a way for me to run the macro from my
machine but have the message pop up on other's computers - so that they
can come out of the relevant workbooks so that my macro can run?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top