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.
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.