Could Not Open Macro Storage 
Author Message
 Could Not Open Macro Storage

Hi,
I have created an application that opens a word doc using
following VB code:

Private Sub Command1_Click()
dim obj_MsWord As Word.Application
Set obj_MsWord = New Word.Application
obj_MsWord.Visible = True
obj_MsWord.Documents.Add "MyTemplate.dot"
obj_MsWord.ActiveDocument.SaveAs App.Path & "\mydoc.doc",
wdFormatDocument
End Sub

However, I get following error:

RUNTIME ERROR: 5981
COULD NOT OPEN MACRO STORAGE.

Any idea what is happening?

Thanks.
-Vishnu



Fri, 04 Mar 2005 19:08:43 GMT  
 Could Not Open Macro Storage
Hi, Vishnu,

See http://support.microsoft.com/default.aspx?scid=KB;EN-US;q162053. The article
is for Office 97, but its recommendations are also valid for Office 2000 and XP.

--
Regards,
Jay Freedman
Microsoft Word MVP        Word MVP FAQ site: http://www.mvps.org/word

Quote:

> Hi,
> I have created an application that opens a word doc using
> following VB code:

> Private Sub Command1_Click()
> dim obj_MsWord As Word.Application
> Set obj_MsWord = New Word.Application
> obj_MsWord.Visible = True
> obj_MsWord.Documents.Add "MyTemplate.dot"
> obj_MsWord.ActiveDocument.SaveAs App.Path & "\mydoc.doc",
> wdFormatDocument
> End Sub

> However, I get following error:

> RUNTIME ERROR: 5981
> COULD NOT OPEN MACRO STORAGE.

> Any idea what is happening?

> Thanks.
> -Vishnu



Sat, 05 Mar 2005 01:49:52 GMT  
 Could Not Open Macro Storage
Hi,
When I am opening a word document to which a template with
micros is attached, I get following error:

RUNTIME ERROR: 5981
COULD NOT OPEN MACRO STORAGE

Any idea what is the cause?

Thanks.
-Vishnu



Sat, 05 Mar 2005 11:48:10 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Could not open macro storage error: 5891

2. could not open macro storage

3. Error: 5981 Could not open macro storage

4. Could not open macro storage

5. 5981 could not open macro storage error

6. error - Could not open macro storage

7. Could not open macro storage!!!!!!!!!!

8. Could not open macro storage error.

9. COULD NOT OPEN MACRO STORAGE

10. Could Not Open Macro Storage

11. Urgent: Could not open macro storage

12. 5981 Error : Could not open Macro Storage

 

 
Powered by phpBB® Forum Software