What I'm doing is creating a large document that is made
up of small files that the user selects from a dialog
box. Some of the smaller files need to be manipulated
before thay can be inserted into the main document, so I
open them, manipulate them, copy the text, and then close
the smaller document without saving the changes. I
simplified the code so that all it does is open the doc
and close the doc and I still get the error the first time
it's ran. I've tried all kinds of error handlers to no
avail. I've tried moving the offending code to different
procedures, etc., and nothing works. Can some one out
there help me?!
I'd guess we're looking at some damage in the document.
Especially if it's wandered through file conversion a time or
two. I'd try:
1) Copy all the text EXCEPT the last paragraph mark to a new
document. (If the template doesn't contain any text, just
create a new document)
2) In the VB Editor, use File/Export to send all the macro
modules to pure text (*.bas) files.
3) Use File/Import to bring the macros into the new document.
4) Reset any references in Tools/References
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister
http://www.mvps.org/word
http://go.compuserve.com/MSOfficeForum
This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)