Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Pop-up Message for each worksheet in a workbook

I have a workbook with 3 worksheets in it. The worksheets are named -
Meat-Page 1, Meat-Page 2, Cheese. When the workbook is opened an automatic
pop-up message box appears. The workbook is always opened to the first tab
(Meat-Page 1). Is there a way that if the user changes to Tab 2 (Meat-Page
2) the pop-up message appears again by just switching tabs? I want to make
this workbook idiot proof which I am finding out is not easy. Thanks for the
help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Pop-up Message for each worksheet in a workbook

In the worksheet code area of each sheet, include the following event macro:

Private Sub Worksheet_Activate()
MsgBox ("This is your complementary message:" & Chr(10) & "You look great
today!")
End Sub
--
Gary''s Student - gsnu200826


"patsy" wrote:

I have a workbook with 3 worksheets in it. The worksheets are named -
Meat-Page 1, Meat-Page 2, Cheese. When the workbook is opened an automatic
pop-up message box appears. The workbook is always opened to the first tab
(Meat-Page 1). Is there a way that if the user changes to Tab 2 (Meat-Page
2) the pop-up message appears again by just switching tabs? I want to make
this workbook idiot proof which I am finding out is not easy. Thanks for the
help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Pop-up Message for each worksheet in a workbook

hi
would have been helpful if you had posted more like the code used to open
ect but vaguely...
you can use the worksheet_Activate event to cause a message to pop up.
Private Sub Worksheet_Activate()
MsgBox "this is a pop up message"
End Sub

regards
FSt1

"patsy" wrote:

I have a workbook with 3 worksheets in it. The worksheets are named -
Meat-Page 1, Meat-Page 2, Cheese. When the workbook is opened an automatic
pop-up message box appears. The workbook is always opened to the first tab
(Meat-Page 1). Is there a way that if the user changes to Tab 2 (Meat-Page
2) the pop-up message appears again by just switching tabs? I want to make
this workbook idiot proof which I am finding out is not easy. Thanks for the
help.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Pop-up Message for each worksheet in a workbook

No such thing as idiot-proof. Idiot's are too ingenious...

Assuming you're using the Workbook_Open() event to fire your message
box, you can use the workbook's Workbook_SheetActivate() event or each
individual sheet's Sheet_Activate() event as well.

In article ,
patsy wrote:

I have a workbook with 3 worksheets in it. The worksheets are named -
Meat-Page 1, Meat-Page 2, Cheese. When the workbook is opened an automatic
pop-up message box appears. The workbook is always opened to the first tab
(Meat-Page 1). Is there a way that if the user changes to Tab 2 (Meat-Page
2) the pop-up message appears again by just switching tabs? I want to make
this workbook idiot proof which I am finding out is not easy. Thanks for the
help.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Pop-up Message for each worksheet in a workbook

Open the VBA editor (Alt+F11).
Find your code that you have previously entered (probably on the
ThisWorkbook sheet)

Change it to:

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
MsgBox "Your message goes here"
End Sub
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"patsy" wrote:

I have a workbook with 3 worksheets in it. The worksheets are named -
Meat-Page 1, Meat-Page 2, Cheese. When the workbook is opened an automatic
pop-up message box appears. The workbook is always opened to the first tab
(Meat-Page 1). Is there a way that if the user changes to Tab 2 (Meat-Page
2) the pop-up message appears again by just switching tabs? I want to make
this workbook idiot proof which I am finding out is not easy. Thanks for the
help.

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
Strange Message when opening workbook Jim Excel Discussion (Misc queries) 3 January 29th 09 04:15 PM
how can I create a pop-up message whenever a workbook is opened? twiftshoeblade Excel Discussion (Misc queries) 4 August 20th 08 11:32 PM
Shared Workbook Start Up Message Matt Setting up and Configuration of Excel 0 January 9th 08 07:09 PM
Can I add a pop-up message that will show when a workbook opens Cruisin Lo Excel Discussion (Misc queries) 5 June 28th 06 07:17 PM
can i have a pop up reminder message when i open a workbook? j jones New Users to Excel 2 November 16th 05 08:07 PM


All times are GMT +1. The time now is 02:54 AM.

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"