• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 299
  • Last Modified:

Macro in Word 10 - Force a 'Save As' as the first step in a macro project

I am running a series of macros to converting an Instructor Manual to a Student Manual. Because I want to keep the original manual intact, I would like to force the user to Save As a new document before running the rest of the macro.

Does anyone have the code to make this work?
1 Solution
This would do it,
Sub SaveAsStudentManual()
    Dim strFileName As String
    strFileName = ActiveDocument.FullName
    ActiveDocument.SaveAs Replace(strFileName, ".", "_Student.")
End Sub

Open in new window

but you could also set the source document to read-only and/or do File/New when starting so that the original is treated as a template a new document created.
CarlaKlopAuthor Commented:
simple and works! Thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now