Run-time error 5981: Could not open macro storage

O

ourspt

Hi,

I am trying to create a word document through my Visual basic application, I
am getting the following error.

Run-time error 5981: Could not open macro storage

at line 2
1> Set oWord = CreateObject("Word.Application")
2> Set oDoc = oWord.Documents.Add

I have tried renaming the normal.dot file as per the suggesstion from
microsoft site, but still no use the same error repeats.

Please help me in this regard,
 

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