Thread: [Solved] Why no 'SaveCopyAs' method?
View Single Post
 
Old 10-16-2013, 03:28 PM
Cosmo Cosmo is offline Windows Vista Office 2007
Competent Performer
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default Why no 'SaveCopyAs' method?

I'm working on a document which will need to save 2 versions of itself as a finalized copy and make edits to those documents (including removing the VBA module which is running the 'Finalize' code) while preserving the original document. I have done something similar in PowerPoint, which has a 'Presentation.SaveCopyAs' method, and was hoping to do the same in my Word document. I can only do a 'SaveAs', in which case the current document which is running the code will then be the same as the saved document.

The steps I took in the PowerPoint file were:
1 Verify current document
2 SaveCopy of current document as "FileName_Finalized_1"
3 Open FileName_Finalized_1
4 Remove specific VBA modules, and do any other finalizing steps
5 Close FileName_Finalized_1
6 Repeat steps 2-5 for second version

The only way I can see to do what I want, is to save the current document as the 'Finalized' document, then resave the current document over the original document. This feels kinda hackish, so I thought I'd ask to see if there is a better way to do what I want.
Reply With Quote