Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default create a message box when opening a file in word or excel 2007

How can i create a message box to appear in my files in MS word or excel
2007, for example "Good Morning" when my colleagues open a file
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default create a message box when opening a file in word or excel 2007

Use the Workbook Open event to display a message for a specific excel
workbook;

Set the security level to low/medium in (Tools|Macro|Security). From
workbook press Alt+F11 to launch VBE (Visual Basic Editor). From the left
treeview search for the workbook name and click on + to expand it. Within
that you should see the following

VBAProject(Your_Filename)
Microsoft Excel Objects
Sheet1(Sheet1)
Sheet2(Sheet2)
Sheet3(Sheet3)
This Workbook

Double click 'This WorkBook' and paste the below code to the right code pane.

Private Sub Workbook_Open()
MsgBox "Message to be displayed"
End Sub

--
Jacob


"David" wrote:

How can i create a message box to appear in my files in MS word or excel
2007, for example "Good Morning" when my colleagues open a file

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
Unexpected message when first opening this 2007 Excel file Jugglertwo Excel Discussion (Misc queries) 1 November 12th 08 07:31 PM
Error message on opening Excel 2007 pedro parkes Excel Discussion (Misc queries) 3 February 15th 08 02:19 AM
How can I display a message when opening an Excel File? PeterM Excel Discussion (Misc queries) 4 November 1st 05 06:58 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
Display a message when opening Excel file Julie Setting up and Configuration of Excel 1 August 10th 05 06:08 PM


All times are GMT +1. The time now is 11:13 PM.

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

About Us

"It's about Microsoft Excel"