Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Gary''s Student ,
"merge must be in a standard module." Actually it can be in the ThisWorkbook module. Also, the OP doesn't need to start using Call. For example, this code can all be in the ThisWorkbook module: Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) Test End Sub Sub Test() MsgBox "test" End Sub Doug "Gary''s Student" wrote in message ... Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) Call merge End Sub merge must be in a standard module. -- Gary''s Student - gsnu200808 "Kiba" wrote: I get and error when i try to run a module named 'Merge' in the workbook section before save. Sub Workbook_BeforeSave() Merge End Sub How can I make this work? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run macro with BeforeSave Event | Excel Programming | |||
Trying to run macro on the BeforeSave event | Excel Programming | |||
BeforeSave | Excel Programming | |||
BeforeSave Sub | Excel Programming | |||
VBA - BeforeSave - NEED HELP | Excel Programming |