• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Message when File is opened

sajjjid

Member
Whenever i open a file e.g. Shops.xlsm , I need a message to appear as "Please do not Edit this file" . Thanks.
 
Hi ,

This can be done using the Workbook_Open event , coding a MsgBox statement in the event procedure.

The one line required will be :

MsgBox "Please do not edit this file" , vbInformation

If you want me to code this , please upload your workbook.

Narayan
 
It is possible only by VBA code as mention below.
Code:
Private Sub Workbook_Open()
MsgBox ("Please do not edit this file")
End Sub
 
Back
Top