A Pop up message in Excel...

  • Thread starter Thread starter Web master
  • Start date Start date
W

Web master

Just curious if this can be done... does anyone know a way to make a pop up
message appear in Excel 2003 when an a file opens? Example, I have a
particular file that is shared for others to update. When whoever opens the
file I would like a little text box to say a few chosen words from me like
"THIS FILE IS NOT TO BE MOVE OR RENAMED" or anything else I choose.

Thanks in advance,

Ian
 
Hi Ian,

In a standard module paste:

'=============>>
Public Sub Auto_Open()
MsgBox "THIS FILE IS NOT TO BE MOVE OR RENAMED"
End Sub
'<<=============
 
In the thisworkbook module in the VB Editor add this code(Right click the
Excel icon in the top right hand corner of Excel and choose view code)

Private Sub Workbook_Open()
MsgBox "THIS FILE IS NOT TO BE MOVE OR RENAMED", _ vbInformation,
"Warning"
End Sub
 
Perfect. Thanks!!!

Norman Jones said:
Hi Ian,

In a standard module paste:

'=============>>
Public Sub Auto_Open()
MsgBox "THIS FILE IS NOT TO BE MOVE OR RENAMED"
End Sub
'<<=============
 

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

Similar Threads

Excel 2010 1
Excel cannot find or read file 5
excel 4
Excell 2021 0
Fake Excel Documents 5
Yellow pop-up notes? 1
Can't open Excel file 6
Pop up Reminder dialog boxes in Excel 2

Back
Top