Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello I have a message box - the code is below.
( I do not want to use validation) I understand that the box below is for when the worksbook is open but I do not know how to change it so that is applies when cell D13 is selected in worksheet entitled Form Private Sub Workbook_Open() Call Form23 End Sub Sub Form23() Dim Msg As String Msg = "Complete Attached Form " & vbCrLf Msg = Msg & "Submit Invoice" & vbCrLf Msg = Msg & "Copy your Manager" MsgBox Msg, vbInformation, "Don't Forget" End Sub |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Right click on the worksheet name tab. Select View Code Copy the following into the VBA editor Private Sub Worksheet_SelectionChange(ByVal Target As Range) Dim isect As Object Set isect = Application.Intersect(Target, Range("D13")) If Not isect Is Nothing Then Call Form23 End If End Sub Sub Form23() Dim Msg As String Msg = "Complete Attached Form " & vbCrLf Msg = Msg & "Submit Invoice" & vbCrLf Msg = Msg & "Copy your Manager" MsgBox Msg, vbInformation, "Don't Forget" End Sub -- Regards, OssieMac "Wanna Learn" wrote: Hello I have a message box - the code is below. ( I do not want to use validation) I understand that the box below is for when the worksbook is open but I do not know how to change it so that is applies when cell D13 is selected in worksheet entitled Form Private Sub Workbook_Open() Call Form23 End Sub Sub Form23() Dim Msg As String Msg = "Complete Attached Form " & vbCrLf Msg = Msg & "Submit Invoice" & vbCrLf Msg = Msg & "Copy your Manager" MsgBox Msg, vbInformation, "Don't Forget" End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
email message on worksheet | Excel Discussion (Misc queries) | |||
using VBA how can I delete a worksheet w/o the warning message pop | Excel Discussion (Misc queries) | |||
Pop up message on Worksheet | Excel Discussion (Misc queries) | |||
Message on opening of worksheet | Excel Discussion (Misc queries) | |||
Message -- Worksheet xls. is locked for editing. What is this? | Excel Discussion (Misc queries) |