VB Error when I open word doc's

J

Jason

Hi
On opening some word document's I get the following error.

Microsoft Visual Basic (Box Title)
An error occurred while opening "Thisdocument'. Do you
want to continue loading the project?

Press yes. It try's to recover, and displays a blank
document. Press no, it displays the document but you
can't save.
 
C

Cindy M -WordMVP-

Hi Jason,

And when you try to open such a document directly in Word
(not using code, but manually) do you get a dialog box of
any kind? What is it about? Which version of Word is
involved?

My first guess would be that such documents contain
VBA-elements and the macro security is triggering...
On opening some word document's I get the following error.

Microsoft Visual Basic (Box Title)
An error occurred while opening "Thisdocument'. Do you
want to continue loading the project?

Press yes. It try's to recover, and displays a blank
document. Press no, it displays the document but you
can't save.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 
J

Jason

Hi Cindy
Thanks for helpinging out.
Im using version 10.2627.2625 (Word 2002 (Office XP) with
out service packs) I also have a test machine with
service pack 1 and 2 installed. But it still happens on
that machine.
Strange Thing.
From my home computer via a VPN session i can open all
files no prob's. From the office, it seem's like only
files created before we upgraded to Office Xp are having
the problem. You can cut and paste the whole document in
to a NEW document and then rename it as the original and
it works fine, it's just the old original document, and
because you can't simply resave from the original it
really boring.
PS. There are litterally thousands of these documents on
the network.
Please help...
 
C

Cindy M -WordMVP-

Hi Jason,

Sounds like some kind of file damage, then. You haven't
described what happens when you try to open such documents
"by hand" rather than using automation? Something that
corresponds to what's generating the error in VB?

Assuming the home computer is the same software version, you
might try renaming the Normal.dot on the office machine. If
the Normal.dot is damaged that might be interfering with
opening slightly "off" documents.
Im using version 10.2627.2625 (Word 2002 (Office XP) with
out service packs) I also have a test machine with
service pack 1 and 2 installed. But it still happens on
that machine.
Strange Thing.
From my home computer via a VPN session i can open all
files no prob's. From the office, it seem's like only
files created before we upgraded to Office Xp are having
the problem. You can cut and paste the whole document in
to a NEW document and then rename it as the original and
it works fine, it's just the old original document, and
because you can't simply resave from the original it
really boring.
PS. There are litterally thousands of these documents on
the network.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

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