Creating a POP UP

mrbeanyuk

Board Regular
Joined
Nov 30, 2005
Messages
213
I am trying to find a qay in which I can create a pop up once a user opens an excel document stating 'do not amend this document'. is this easily done?

Thanks
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi Mr Bean!

You may want to consider this option using a simple message box:

Right click tab > View Code > This Workbook >

Paste in the following code:

Private Sub Workbook_open()
MsgBox "Do NOT amend this document!", vbExclamation, "WARNING"
End Sub

Save, close and reopen to test.

HTH!
 
Upvote 0
It does not work! I tried it but nothing happens except message at open about enable macro. Click YES nothing more
 
Upvote 0
OK, you need to disable macros first, close Excel and reopen again. Only disable macros if you have an AV installed - I assume you have one!
 
Upvote 0
No need for VBA. Protect the workbook with Tools | Protection > Protect workbook...

In different versions of XL the command may be located in a different menu location but it exists going way back.

mrbeanyuk said:
I am trying to find a qay in which I can create a pop up once a user opens an excel document stating 'do not amend this document'. is this easily done?

Thanks
 
Upvote 0

Forum statistics

Threads
1,203,455
Messages
6,055,540
Members
444,794
Latest member
HSAL

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