Getting my template and macros to work on a different computer

L

Larry

I copied my Normal template and a global template from my own computer
(Windows 98, Word 97) to another computer (also Windows 98, Word 97). I
placed the templates in the appropriate folders, did the appropriate
re-naming and started Word ok. But when I tried to run any of my
macros, I got this message:

"Compile error. Can't find project or libtrary."

Another error I get sometimes was

"Run-time error 5981. Could not open macro storage."

I looked in the VBA window at Tools, References and noted this item in
the list:

"Missing: DS: OLE Document Properties 1.4 Object Library." On the
references dialog box was this information: "Location: C:\Program
Files\]DSO File\DSOFile.dll" There was no "DSO File" folder in Program
Files.

So I went back to my own computer, looked in the VBA References dialog,
and found the "DS: OLE" item (not missing, but checked.) I also found
the DSOFile.dll in the DSO File folder. I think I installed this a
while back in order to create a couple of macros that read the Word
version of a document. But that DSO thing is only used in those two
macros. I wasn't able to run ANY macros on the other machine.

So, my question is, does it make sense that my installation of the DS:
OLE object library in my own Word would prevent all my macros from
running on an another machine that lacks that library? And is it
necessary now that I install the DSO on the other machine if I want to
use my macros on it?

Inquiring minds want to know.

Thanks,
Larry
 
J

Jezebel

Word treats the template's code collectively as a VBProject. If there are
missing references, the project can't run at all, even if those references
are not actually used. To fix it, open the references list on the target
machine, clear the checkbox for the missing item. Close and shut down Word.
Then restart.

'Could not open macro storage.' comes up for various kinds of code and
template problem. The above fix might resolve it. It also comes up if there
are corruptions in the underlying document. Roughly speaking a Word
document/template file has two sections: text and data. The message is
intended to indicate a corruption in the data half.
 

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