exactly... create the Word Object with CreateObject
Main Topics
Browse All TopicsI run into a problem creating a word object in VB 5.
Word starts then shows a message-box "Cannot Open Normal.dot". Word remains open but without a document template. If I go to close the instance of Word, it asks if I'd like to save Normal.dot.
This problem does not happen when opening Word by itself.
I've tried deleting the Normal.dot, it didn't work.
This problem only happened after moving from development machine to a production machine and seems to be configuration-related rather than code-related...
Again, Word 95 and NT 4.0
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The macro you are trying to run maynot have been saved to the Document Template that you are trying to run. The next thing that word tries to do, is find-out if the macro is in Normal.dot. In the mean time you have deleted the Normal.dot. Restore the Normal.dot and set the location in Tools-Options-File Locations. Check to see if the macro that you are trying to run is in the template you are trying to run it from. When you are in the macros dialog, from the drop down combo in the list, choose the dot file that you intend to run. By default it is 'All Templates' or 'Normal.dot'.. I am not sure which. But I am positive that it is not the current template by default.
When you saved macros, they would have gotten into the Normal.dot that you deleted. Check your template and add the macros to the template if they are not already there and restore your Normal.dot and set it in the above said dialog.
If you still have problems please add more comments about the nature of the problem.
the macros that are going to be run are not in either Normal.dot or in the Template being loaded, they are in a global template placed in the Winword start-up directory. We are never deleting Normal.dot that was only done once in a test. Any other info on how word relates to Normal.dot or any other pitfalls that you know of will be appreciated.
You could put the code that you want to execute in to a Document Template File (.Dot). After you have done whatever, with it programatically, just save it as a document with whatever name you like. Thats the way I am used to working with Automation with Word. I always considered Normal.dot as the global template. By saying 'Global Template' are you referring to
'Normal.dot'?
If you are new to my idea, please try it out..It works for me.
Business Accounts
Answer for Membership
by: mcixPosted on 1998-08-27 at 18:48:25ID: 1431488
Which Word Object are you trying to create Application, Document, Template, etc...?
How are you creating the Word Object with CreateObject or as a Dim objWord As New Word?