Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
R. R. is offline
external usenet poster
 
Posts: 1
Default How to create a message that appears when opening an excel file

I want the spreadsheet to show an specific message when opening the file. Is
it possible?

Thank you,

R.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default How to create a message that appears when opening an excel file

Here is some code that needs to be pasted into ThisWorkbook (Right click the
Excel Icon in the uper left corner of the Excel Screen -View Code -Paste
this code)

Private Sub Workbook_Open()
MsgBox "Here is my message", vbInformation, "Tada"
End Sub
--
HTH...

Jim Thomlinson


"R." wrote:

I want the spreadsheet to show an specific message when opening the file. Is
it possible?

Thank you,

R.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default How to create a message that appears when opening an excel file

Hi R,

In the workbook's ThisWorkbook module:


Private Sub workbook_Open()

Msgbox "Your designated message"

End Sub


---
Norman


"R." wrote in message
...
I want the spreadsheet to show an specific message when opening the file.
Is
it possible?

Thank you,

R.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
create a message box when opening a file in word or excel 2007 David Excel Discussion (Misc queries) 1 April 5th 10 02:37 PM
No data appears when opening a file SusanJane sjl Excel Discussion (Misc queries) 1 March 28th 08 03:13 PM
Dialog box appears when opening Excel says it can't find a file? Aloha6 Excel Discussion (Misc queries) 2 September 12th 06 01:03 PM
"Unable to read file" error message when opening a Excel file that contains a PivotTable report. Tim Marsden Charts and Charting in Excel 2 October 15th 05 02:10 PM
How- Message box on opening excel file? Buck247 Excel Programming 2 June 16th 04 03:50 PM


All times are GMT +1. The time now is 09:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"