Losing macro storage in template

P

Pat

I've have a template in Word 98 in which there is a bunch
of code sitting on the back-end, and after saving twice
in the same 'login' and exiting, reopening an instance of
the template will throw a "Cannot open macro storage"
error. I don't know if this is the only way to reproduce
this error, but it is certainly one way...

I don't think it is related to the kb article I've seen
here, does anyone have any ideas? It is strange because
the functionality the code provides is fine upon opening
an intial instance of the template, then disappears if a
document is saved twice in one editing session without
closing the document.

Thanks in advance!
 
J

John McGhie

This is not easy...

One of the files you opened is not releasing the template.

What does the code *do*?

If it makes any copy/paste or edit operations, you can get a situation where
there is an edit lock being placed on various Temp files waiting to see if
the data is going to be needed again.

Try including an Unload.Me statement at the end to explicitly close the
project. Or, if you are creating any objects, try explicitly setting them
to Nothing before your code exits.

Sorry: Can't be much help, but the guys over on the VBA group may have much
more help. Tell them you're using Word 98 and it's functionally equivalent
to Word 97 and they will be fine with it.

Cheers
 

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