How to add a "cloned document"

M

Michael Hoeper

Hi all,

i have a word document and want to add a new one in Word. This new should
have the same text and format, the old one has. I am trying since
two hours, but have no idea how to "clone" documents. I tried to
"wholeselect" the old one and copy it to the new, but format-differences
from template, made in the old document, will not be copied.

In Borland Delphi i would do someting like this...

procedure Clone;
begin
NewDocument := WordDocument.Create;
NewDocument.Assign(OldDocument);
end;

but dont know how to do that in VBA. Maybe anybody else has an idea...
 
E

Ed

Hi, Michael. Many times, a "cloned" document - or a new document made from
a master - is done by creating the master document, and then saving it as a
template (File>>SaveAs, File Type choose Document Template (.dot) ). Then,
when you choose File>>New, you can choose your "master document" template as
the basis for your new Word document. Is this what you were trying to do?

Ed
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

The use of a Template as Ed mentioned is what should be done if you
continually want to this. Alternatively, why not just save the document
with a different name using

ActiveDocument.SaveAs "NewFileName"

If you then want to have both documents open (though only one can be the
activedocument), use

Documents.Open "OldFileName"


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 

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