Deleting a Macro when document is saved as (1 Viewer)

scott-atkinson

I'm with the Witch.......
Local time
Today, 04:14
Joined
Aug 31, 2006
Messages
1,622
Guys,

I have another problem..

I have written a comprehensive Macro to format a spreadsheet and save it as another name in another folder.

My problem is that when the code actions the save as it also copies the Macro to the new document as well, and I do not want this to happen.

So my question is how can I code in VB to delete the Macro from the newly named workbook?

Any ideas?
 

DCrake

Remembered
Local time
Today, 04:14
Joined
Jun 8, 2005
Messages
8,632
Simple Software Solutions

Without testing it and of the top of my head when you have finished formatting and saving your spreadsheet. Why not create have another spreadsheet that opens up the previous spreadsheet and deletes the macro and then save the spreadsheet.

Just a thought:confused:
 

Users who are viewing this thread

Top Bottom