Organizer

J

Julia

Hi,

I want to write code that will copy styles from one
document to my active document. I have the following
statement:

Application.OrganizerCopy Source:="H:\Word
Templates\Outline 1.dot", _
Destination:="H:\Word Templates\Normal.dot",
Name:="Heading 2", Object:= _
wdOrganizerObjectStyles

When I change the destination from "H:\Word...;"
to "Activedocument", I get an error.

Can anyone help? Thanks much.
 
J

Jonathan West

Hi Julia,

That is because ActiveDocument is an object, and the OrganizerCopy methos is
looking for a string containing a full pathname. Use ActiveDocument.FullName
instead.
 

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