Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default msgbox function


I'm not sure if what I'm trying to do is possible, but I have a workbook
where if a sheet is selected, I need a msgbox to pop up under certain
circumstances. I'm not having a problem with the circumstance part,
but with the msgbox popping up. I thought that if I put the following
code in "thisworksheet" or in the sheet under the excel objects, then
it would work automatically (much like when a user form appears when a
workbook is opened), but no such luck.

If Sheets("Summary").Select Then
MsgBox ("Please make sure that the currency choice and percentage
of attendance are uniform for all sheets before viewing this page.
Thank you.")
End if

Any help is greatly apprciated. Thanks,
Cami


--
cliodne
------------------------------------------------------------------------
cliodne's Profile: http://www.excelforum.com/member.php...o&userid=28774
View this thread: http://www.excelforum.com/showthread...hreadid=533247

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default msgbox function

In your sheet's code:

Private Sub Worksheet_Activate()
MsgBox "Warning"
End Sub

HTH
--
AP

"cliodne" a écrit
dans le message de
...

I'm not sure if what I'm trying to do is possible, but I have a workbook
where if a sheet is selected, I need a msgbox to pop up under certain
circumstances. I'm not having a problem with the circumstance part,
but with the msgbox popping up. I thought that if I put the following
code in "thisworksheet" or in the sheet under the excel objects, then
it would work automatically (much like when a user form appears when a
workbook is opened), but no such luck.

If Sheets("Summary").Select Then
MsgBox ("Please make sure that the currency choice and percentage
of attendance are uniform for all sheets before viewing this page.
Thank you.")
End if

Any help is greatly apprciated. Thanks,
Cami


--
cliodne
------------------------------------------------------------------------
cliodne's Profile:

http://www.excelforum.com/member.php...o&userid=28774
View this thread: http://www.excelforum.com/showthread...hreadid=533247



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default msgbox function


Brilliant!!

Thank yo

--
cliodn
-----------------------------------------------------------------------
cliodne's Profile: http://www.excelforum.com/member.php...fo&userid=2877
View this thread: http://www.excelforum.com/showthread.php?threadid=53324

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
IF Function and msgbox CC Excel Worksheet Functions 6 July 21st 06 09:41 AM
VBA msgbox function LesLdh Excel Programming 3 May 7th 05 08:32 PM
MsgBox Function and Arguments Tinä[_5_] Excel Programming 0 November 12th 04 03:16 PM
MsgBox Function and Arguments Tinä[_4_] Excel Programming 1 November 12th 04 02:39 PM
MsgBox shasta[_5_] Excel Programming 4 April 13th 04 01:56 PM


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