|
|
|
|
|
|
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()
Application.Documents.Add ActiveDocument.FullName
End Sub
|
How to use:
|
- Open your Word document.
- Press Alt + F11 to open VBE.
- Insert-Module. (Insert -> module)
- Paste the code there in the window at right. (F7)
- Close VBE (Alt + Q or press the X in the top right hand corner).
- Save the file.
|
Test the code:
|
- press Alt + F8 to open the macro dialog box.
- Select CopyActiveDocument
- Click Run.
|
Sample File:
|
Make copy.zip 12.23KB
|
Approved by mdmackillop
|
This entry has been viewed 112 times.
|
|