Hi all,
I am working on a macro that makes users click "Enable Content" mandatorily to access the workbook, works like a charm, except I have a macro which does a .SaveAs under a different name, and it automatically closes my original file, but doesn't initiate the "Workbook_BeforeClose" code I have in it.
Is there a way around this?
I do want to close the original doc, but have the "Workbook_BeforeClose" to run in it. I have to have my new workbook to be my active workbook, as the .SaveAs macro does a lot of things to it referring to a workbook object which equals my 'ActiveWorkbook'. (new wb is also an xlsm)
Can someone help me with this?
Thanks!
I am working on a macro that makes users click "Enable Content" mandatorily to access the workbook, works like a charm, except I have a macro which does a .SaveAs under a different name, and it automatically closes my original file, but doesn't initiate the "Workbook_BeforeClose" code I have in it.
Is there a way around this?
I do want to close the original doc, but have the "Workbook_BeforeClose" to run in it. I have to have my new workbook to be my active workbook, as the .SaveAs macro does a lot of things to it referring to a workbook object which equals my 'ActiveWorkbook'. (new wb is also an xlsm)
Can someone help me with this?
Thanks!