K
Karl Zuern
Hi,
I would like to copy a format-template from a DOT-File into the
ActiveDocument.
In Word 2003 the folling VBA-Code works fine:
-----------------------------------------------------------------------------------------------
Sub TestOrganizerCopy()
source1 = Options.DefaultFilePath(wdProgramPath) & "\StartUp\DATA5.dot"
destination1 = ActiveDocument.FullName
Application.OrganizerCopy Source:=source1, Destination:=destination1,
Name:="AbsatzNummer", Object:=wdOrganizerObjectStyles
End Sub
-----------------------------------------------------------------------------------------------
In Word 2007 this code works also fine, but only if the ActiveDocument is
stored on the local filesystem.
If the ActiveDocument is stored somewhere on a fileserver the code produces
a error that tells you, that the active document is already open.
The system seems to block itself.
Does anybody know a solution, how to solve the problem?
Thanks for help.
Regards
Karl Zuern / DATA 5 GmbH
I would like to copy a format-template from a DOT-File into the
ActiveDocument.
In Word 2003 the folling VBA-Code works fine:
-----------------------------------------------------------------------------------------------
Sub TestOrganizerCopy()
source1 = Options.DefaultFilePath(wdProgramPath) & "\StartUp\DATA5.dot"
destination1 = ActiveDocument.FullName
Application.OrganizerCopy Source:=source1, Destination:=destination1,
Name:="AbsatzNummer", Object:=wdOrganizerObjectStyles
End Sub
-----------------------------------------------------------------------------------------------
In Word 2007 this code works also fine, but only if the ActiveDocument is
stored on the local filesystem.
If the ActiveDocument is stored somewhere on a fileserver the code produces
a error that tells you, that the active document is already open.
The system seems to block itself.
Does anybody know a solution, how to solve the problem?
Thanks for help.
Regards
Karl Zuern / DATA 5 GmbH