ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   SheetActivate event (https://www.excelbanter.com/excel-programming/295546-sheetactivate-event.html)

Andy Palmer

SheetActivate event
 
I have a workbook that contains a number of sheets. I want
to be able to pop up a message box when a user selects a
specific sheet. How do I do it?

Thanks

eDGAR

SheetActivate event
 
Hi Andy

Put this in the worksheets module

Private Sub Worksheet_Activate()
MsgBox ("Your Message here....")
End Sub



-----Original Message-----
I have a workbook that contains a number of sheets. I

want
to be able to pop up a message box when a user selects a
specific sheet. How do I do it?

Thanks
.


Andy Palmer

SheetActivate event
 
Many thanks for that - it worked a treat :)
-----Original Message-----
Hi Andy

Put this in the worksheets module

Private Sub Worksheet_Activate()
MsgBox ("Your Message here....")
End Sub



-----Original Message-----
I have a workbook that contains a number of sheets. I

want
to be able to pop up a message box when a user selects a
specific sheet. How do I do it?

Thanks
.

.



All times are GMT +1. The time now is 10:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com