Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Is it possible to write a VBA on excel that when I click over a specific worksheet's tab a message box pop-up and give me a message? Thanks in advance |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Put code like the following in the ThisWorkbook code module.
Private Sub Workbook_SheetActivate(ByVal Sh As Object) If Sh.Name = "Sheet1" Then MsgBox "Hello world" End If End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "A-Design" wrote in message ... Hi, Is it possible to write a VBA on excel that when I click over a specific worksheet's tab a message box pop-up and give me a message? Thanks in advance |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you so much,
Should I paste it to ThisWorkbook or just the sheet that I need to use the code on? The message box,is it possible that I can change the color of the box or message? Thanks again. "Chip Pearson" wrote in message ... Put code like the following in the ThisWorkbook code module. Private Sub Workbook_SheetActivate(ByVal Sh As Object) If Sh.Name = "Sheet1" Then MsgBox "Hello world" End If End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "A-Design" wrote in message ... Hi, Is it possible to write a VBA on excel that when I click over a specific worksheet's tab a message box pop-up and give me a message? Thanks in advance |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Put the code in the ThisWorkbook code module. No, you can't
change the colors of a msgbox. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "A-Design" wrote in message ... Thank you so much, Should I paste it to ThisWorkbook or just the sheet that I need to use the code on? The message box,is it possible that I can change the color of the box or message? Thanks again. "Chip Pearson" wrote in message ... Put code like the following in the ThisWorkbook code module. Private Sub Workbook_SheetActivate(ByVal Sh As Object) If Sh.Name = "Sheet1" Then MsgBox "Hello world" End If End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "A-Design" wrote in message ... Hi, Is it possible to write a VBA on excel that when I click over a specific worksheet's tab a message box pop-up and give me a message? Thanks in advance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Message | Excel Worksheet Functions | |||
If then Message Box | Excel Discussion (Misc queries) | |||
changing the message in an error message | Excel Worksheet Functions | |||
Message Pop Up Box | Excel Programming | |||
Displaying a message in a message box without requiring user to click anything to proceed | Excel Programming |