Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how can I create a pop-up message whenever a workbook is opened?

I would like to make a message appear in the form of a pop-up, like an input
or error message, whenever a workbook is opened.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 320
Default how can I create a pop-up message whenever a workbook is opened?

Right-click the excel LOGO (near the file menu), select View Code, enter this:
Private Sub Workbook_Open()
Msgbox "Hello, World!"
End Sub
Bob Umlas

"twiftshoeblade" wrote:

I would like to make a message appear in the form of a pop-up, like an input
or error message, whenever a workbook is opened.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default how can I create a pop-up message whenever a workbook is opened?

Hi,

Alt+F11 to open VB editor. Double click 'This Workbook' and paste this in on
the right

Private Sub Workbook_Open()
response = MsgBox("Hello World", vbOKOnly, "My Welcome message")
End Sub

Mike

"twiftshoeblade" wrote:

I would like to make a message appear in the form of a pop-up, like an input
or error message, whenever a workbook is opened.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how can I create a pop-up message whenever a workbook is opene

Thanks to both Mike H and Bob Umlas... exactly the result I was seeking.
My target audience, however, is likely to disable macros upon opening the
workbook... anyway to disable that warning?

"Mike H" wrote:

Hi,

Alt+F11 to open VB editor. Double click 'This Workbook' and paste this in on
the right

Private Sub Workbook_Open()
response = MsgBox("Hello World", vbOKOnly, "My Welcome message")
End Sub

Mike

"twiftshoeblade" wrote:

I would like to make a message appear in the form of a pop-up, like an input
or error message, whenever a workbook is opened.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default how can I create a pop-up message whenever a workbook is opene

There are t ways around it. One is to have your users set their macro
security to low. The down side is that if a workbook contains a virus then
they will open it without warning and get infected. A better option is to
digitally sign your work. That makes your work into a trusted source and the
book can open without need for the macro security alert... Check out this
link...

http://office.microsoft.com/en-us/he...495551033.aspx
--
HTH...

Jim Thomlinson


"twiftshoeblade" wrote:

Thanks to both Mike H and Bob Umlas... exactly the result I was seeking.
My target audience, however, is likely to disable macros upon opening the
workbook... anyway to disable that warning?

"Mike H" wrote:

Hi,

Alt+F11 to open VB editor. Double click 'This Workbook' and paste this in on
the right

Private Sub Workbook_Open()
response = MsgBox("Hello World", vbOKOnly, "My Welcome message")
End Sub

Mike

"twiftshoeblade" wrote:

I would like to make a message appear in the form of a pop-up, like an input
or error message, whenever a workbook is opened.

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
open workbook b when workbook a opened [email protected] uk Excel Discussion (Misc queries) 5 July 23rd 08 01:02 AM
how can I have a message displayed when a spreedsheet is opened ? dleus Excel Discussion (Misc queries) 2 May 17th 08 05:09 PM
message box when file is opened oxicottin Excel Worksheet Functions 5 January 13th 07 12:47 AM
how do i create a start up message each time a document is opened? Dane Excel Discussion (Misc queries) 1 September 13th 06 03:00 AM
Display a message when a file is opened. Sheila New Users to Excel 4 November 15th 05 05:14 PM


All times are GMT +1. The time now is 08:24 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"