Word 2002 Copy Styles Using Organizer

M

mpalace

I am trying to copy specific styles from a template into an open
document using the OrgzanizerCopy command. The code works fine for
documents that are not being opened from DM. I can get it to work with
DM files if I enter the path before ActiveDocument.Name where the file
is located when it open, which is C:\Documents and Settings\zzl
\Application Data\Hummingbird\DM\Temp\.

I can't find a way to have this path automatically be recognized. Has
anyone worked with this command and DM5 documents?

strThisDocument = ActiveDocument.Name

Application.OrganizerCopy Source:= "v:\OfficeXP\Tempform\Styles.dot",
_
Destination:=strThisDocument, Name:="P2-DS Flush Left", _
Object:=wdOrganizerObjectStyles

Thanks.
 

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