Application.OrganizerCopy does not work correctly in Word 2007

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
 
R

roadz

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
 
R

roadz

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
 
K

Karl Zuern

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.
 

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