Open as a copy

U

Ulf Nilsson

Hi,
How do I open a document as a copy? When I record the
macro it just says:

Documents.Open FileName:="""Copy (2) of j-ma.doc"""

It seems that Word creates a copy automatically. How is
this done using VBA?

/ Ulf
 
P

Perry

Why don't y use:

documents.Add "c:\temp\MyDoc.doc"

Adds a new document based on your original one.
The newly created doc can serve as yr copy ...

Krgrds,
Perry
 
U

Ulf Nilsson

Hi Perry,

Documents.Add is also locking the original.

Any more suggestion?

/ Ulf
 
P

Perry

I forget

Set d = Documents.Add("c:\temp\doc5.doc", newtemplate = True)

Set the NewTemplate parameter to true, like in above example

Krgrds,
Perry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top