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

Re: Application.OrganizerCopy does not work correctly in Word 2007 by roadz

roadz
Wed Apr 11 08:50:45 CDT 2007

Karl,

I have come across the same problem. I think that it works if you use
a mapped drive to your file server rather than a UNC path. This isn't
an appropriate solution for my needs but it might help you.

Dave

On Mar 19, 10:34 am, "Karl Zuern" <Karl.Zu...@DATA5.de> wrote:
> 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:
>
> -------------------------------------------------------------------------=
--=AD--------------------
> Sub TestOrganizerCopy()
> source1 =3D Options.DefaultFilePath(wdProgramPath) & "\StartUp\DATA5.=
dot"
> destination1 =3D ActiveDocument.FullName
> Application.OrganizerCopySource:=3Dsource1, Destination:=3Ddestinatio=
n1,
> Name:=3D"AbsatzNummer", Object:=3DwdOrganizerObjectStyles
> End Sub
> -------------------------------------------------------------------------=
--=AD--------------------
>
> 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 produc=
es
> 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



Re: Application.OrganizerCopy does not work correctly in Word 2007 by roadz

roadz
Wed Apr 18 03:06:08 CDT 2007

I have come to the conclusion that adding a macto into my document was
not necessary, I have found another way to solve the problem instead.

Dave

On Apr 11, 2:50 pm, "roadz" <david.w...@aimlegal.com> wrote:
> Karl,
>
> I have come across the same problem. I think that it works if you use
> a mapped drive to your file server rather than a UNC path. This isn't
> an appropriate solution for my needs but it might help you.
>
> Dave
>
> On Mar 19, 10:34 am, "Karl Zuern" <Karl.Zu...@DATA5.de> wrote:
>
>
>
> > 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:
>
> > -----------------------------------------------------------------------=
----=AD=AD--------------------
> > Sub TestOrganizerCopy()
> > source1 =3D Options.DefaultFilePath(wdProgramPath) & "\StartUp\DATA=
5=2Edot"
> > destination1 =3D ActiveDocument.FullName
> > Application.OrganizerCopySource:=3Dsource1, Destination:=3Ddestinat=
ion1,
> > Name:=3D"AbsatzNummer", Object:=3DwdOrganizerObjectStyles
> > End Sub
> > -----------------------------------------------------------------------=
----=AD=AD--------------------
>
> > 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 prod=
uces
> > 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- Hide quoted text -
>
> - Show quoted text -



Re: Application.OrganizerCopy: it is a bug by Karl

Karl
Thu May 03 01:18:02 CDT 2007

In the meantime I have got an official answer from MS-Support Germany.

It is a bug. But Microsoft does not offer a fix -:(
They suggested to copy the document to the temp-folder before using the
OrganizerCopy command. I dont't think that this is a good solution.

Regards
Karl.



"Karl Zuern" <Karl.Zuern@DATA5.de> schrieb im Newsbeitrag
news:190C44EB-68D7-49D6-8B11-B119D1A009B0@microsoft.com...
> 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
>
>