Hi
Is it possible to us .SaveCopyAs to save a copy of an existing workbook but in doing so remove all the VB in the saved copy of the workbook?
The reason I ask is that I have a workbook which I need to save a copy of, then open and delete most of the sheets. However, the workbook from which the copy is being created contains code in the workbook.open event and so when I open the copy to delete the sheets (which I want to occur without user intervention) the workbook.open code fires up (and prompts the user for input - which the code is designed to do) ...
Thanks
Shane
Is it possible to us .SaveCopyAs to save a copy of an existing workbook but in doing so remove all the VB in the saved copy of the workbook?
The reason I ask is that I have a workbook which I need to save a copy of, then open and delete most of the sheets. However, the workbook from which the copy is being created contains code in the workbook.open event and so when I open the copy to delete the sheets (which I want to occur without user intervention) the workbook.open code fires up (and prompts the user for input - which the code is designed to do) ...
Thanks
Shane