Run-time error 5981: Could not open macro storage

C

Chrisser

Hi

I've created a dll to perform mailmerge. It is made in Visual Basic and it
is working all right on two servers which have word2000 / word2000 SP1
installed.
Now I have put it on a third server which also has word2000 but SP3, but I
am getting "Run-time error 5981 Could not open macro Storage".

I think it has something to do with a security patch:
http://support.microsoft.com/?kbid=830347
The winword.exe version is 9.0.0.8216.
But we are not using any macros in the merge documents...

A bit of my code:

Set WordObj = CreateObject("Word.application.9")
WordObj.Documents.Open FileName:=Brev, ReadOnly:=True

The error comes in the second line where I am trying to open the merge
document

In addition:
Macro safety has been set to low and permissions are OK.

Any ideas ?

Christina Bjørk
 
S

Steve Lang

Hi Christina,

It's likely that one of the documents' source templates has a reference that
is missing or corrupted on that machine. Check the references of the source
template for "Brev" and see if something comes up missing in the list.

HTH and have a great day!

Steve
 
C

Chrisser

Hi Steve

We do not use templates to merge documents ( as I see it ).
Example of a field in a document:
Looks like this in normal view in word: «Adresse»
If you press ALT+F9 you can see this: {MERGEFIELD Adresse \*MERGEFORMAT}

I have tried with documents that works on other servers, beside I have tried
with a completely emty document -> same error
But anyway I've checked the references in word on the server and they looked
fine - maybee I misunderstod you ?.
We have also tried regtlib if word on the server was corrupted - no
changes...

You too !

Christina
 

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