Word

Create A Copy Of The Active Document

Ease of Use

Easy

Version tested with

2000, 2002, 2003 

Submitted by:

MOS MASTER

Description:

This sub will create (add) a new document based on the opened (Active) document. 

Discussion:

Sometimes you want to make a copy of your active document. This sub helps you do that. 

Code:

instructions for use

			

Option Explicit Sub CopyActiveDocument() ' \\ Creates a new document based on the active document Application.Documents.Add ActiveDocument.FullName End Sub

How to use:

  1. Open your Word document.
  2. Press Alt + F11 to open VBE.
  3. Insert-Module. (Insert -> module)
  4. Paste the code there in the window at right. (F7)
  5. Close VBE (Alt + Q or press the X in the top right hand corner).
  6. Save the file.
 

Test the code:

  1. press Alt + F8 to open the macro dialog box.
  2. Select CopyActiveDocument
  3. Click Run.
 

Sample File:

Make copy.zip 12.23KB 

Approved by mdmackillop


This entry has been viewed 112 times.

Please read our Legal Information and Privacy Policy
Copyright @2004 - 2020 VBA Express