Not having many skills with VB I am now stuck again
I have a VB macro that now works perfectly thanks to the help from this forum.
I have tried to make it a BeforeClose procedure so users dont have to call the macro or having to put a Control button on the sheet
In Visual Basic Editor I opened the VBA Projects and clicked on ThisWorkbook tab. In the code window I typed the first line as :-
Private Sub Workbook_BeforeClose()
Then copied and pasted everything from the macro under that
When I go to close the workbook and have the procedure run I get a Compile Error message box.
Compile Error:
Procedure Declaration does not match description of event or procedure having the same name
Now I an lost again HELP PLEASE
I have a VB macro that now works perfectly thanks to the help from this forum.
I have tried to make it a BeforeClose procedure so users dont have to call the macro or having to put a Control button on the sheet
In Visual Basic Editor I opened the VBA Projects and clicked on ThisWorkbook tab. In the code window I typed the first line as :-
Private Sub Workbook_BeforeClose()
Then copied and pasted everything from the macro under that
When I go to close the workbook and have the procedure run I get a Compile Error message box.
Compile Error:
Procedure Declaration does not match description of event or procedure having the same name
Now I an lost again HELP PLEASE