Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello this is my message box
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 I want this message to pop up when the work book is opened. right now it only works if I run the macro. thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
hi
you probably have the code in a standard module. if you want the msbbox to pop up when the workbook is opened, put in the workbook open module. in the project window(far left) double click thisworkbook then from the left combo of the code window, select this workbook. the workbook_open() should default Regards FSt1 "Marilyn" wrote: Hello this is my message box 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 I want this message to pop up when the work book is opened. right now it only works if I run the macro. thanks |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Marilyn,
Try posting the following code in the ThisWorkbook module: '========== Private Sub Workbook_Open() Call Form23 End Sub '<<========== This is workbook event code and should be pasted into the workbook's ThisWorkbook module *not* a standard module or a sheet module: Right-click the Excel icon on the worksheet (or the icon to the left of the File menu if your workbook is maximised) Select 'View Code' from the menu and paste the code. Alt-F11 to return to Excel. --- Regards. Norman "Marilyn" wrote in message ... Hello this is my message box 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 I want this message to pop up when the work book is opened. right now it only works if I run the macro. thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula to show the message that number already entered | Excel Worksheet Functions | |||
Error message - PivotTable will not fit on sheet. Show as much as | Excel Worksheet Functions | |||
"Do Not Show Again" option for message box | Excel Discussion (Misc queries) | |||
Can I add a pop-up message that will show when a workbook opens | Excel Discussion (Misc queries) | |||
changing the message in an error message | Excel Worksheet Functions |