Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I would like to know the code for use in a macro that will cause a Message to
'pop open' when I click on to another sheet, or close the file. The message would read something like 'Before proceeding do you want to protect the sheet?' Thanks for any help. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Paste this into the Thisworkbook Module
Private Sub Workbook_SheetActivate(ByVal Sh As Object) Dim strmsg As String strmsg = ActiveSheet.Name & vbCrLf & "Would you like to Protect Sheet" MsgBox strmsg End Sub "JoeP" wrote: I would like to know the code for use in a macro that will cause a Message to 'pop open' when I click on to another sheet, or close the file. The message would read something like 'Before proceeding do you want to protect the sheet?' Thanks for any help. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Paste both oh these into thisworkbook module
Private Sub Workbook_BeforeClose(Cancel As Boolean) Dim strmsg As String strmsg = "Before proceeding would you like to protect" _ & vbCrLf & ActiveSheet.Name MsgBox strmsg End Sub Private Sub Workbook_SheetActivate(ByVal Sh As Object) Dim strmsg As String strmsg = "Before proceeding would you like to protect" _ & vbCrLf & ActiveSheet.Name MsgBox strmsg End Sub "JoeP" wrote: I would like to know the code for use in a macro that will cause a Message to 'pop open' when I click on to another sheet, or close the file. The message would read something like 'Before proceeding do you want to protect the sheet?' Thanks for any help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
linked PDF will not open "can not open specified file" is message | Excel Discussion (Misc queries) | |||
Open Outlook with generic message | Excel Discussion (Misc queries) | |||
can i have a pop up reminder message when i open a workbook? | New Users to Excel | |||
Cannot open Excel, message given is about VBA libraries? | Excel Discussion (Misc queries) | |||
want to create a message box to appear on open | Excel Discussion (Misc queries) |