K
KAM
I am trying to copy styles from a template to whatever the active doc is.
Here is my code that has worked in past versions of Word:
MyDocName = ActiveDocument.FullName
With Application
.OrganizerCopy Source:=MainTemplate, Destination:=MyDocName,
Name:="_Document", Object:=wdOrganizerObjectStyles
Now when I try to run this is gives me a problem about my doc being read
only.
When I recorded the organizer manually, here is what it gave me for the
destination file:
Destination:= _
"C:\Documents and Settings\myusername\Local Settings\Temporary
Internet Files\Content.MSO\CDA11CE3.doc" _
When I have my destination doc saved to my C: drive, the code runs fine, as
soon as I save the doc to a network drive, it gives me the read only problem.
Any ideas? This template is going to customers who may save their files
anywhere. Also, this code worked fine in past versions of WORD!! Help.
Here is my code that has worked in past versions of Word:
MyDocName = ActiveDocument.FullName
With Application
.OrganizerCopy Source:=MainTemplate, Destination:=MyDocName,
Name:="_Document", Object:=wdOrganizerObjectStyles
Now when I try to run this is gives me a problem about my doc being read
only.
When I recorded the organizer manually, here is what it gave me for the
destination file:
Destination:= _
"C:\Documents and Settings\myusername\Local Settings\Temporary
Internet Files\Content.MSO\CDA11CE3.doc" _
When I have my destination doc saved to my C: drive, the code runs fine, as
soon as I save the doc to a network drive, it gives me the read only problem.
Any ideas? This template is going to customers who may save their files
anywhere. Also, this code worked fine in past versions of WORD!! Help.