Debug Problem

P

Peter L Kessler

Hi Group

Something strange is happening in Word. I'm writing some Word 97 VBA
routines in a user form, and I usually go into Debug mode by pressing F8 to
run through my script step by step.

Normally this is fine, but since Friday, every time the run-through reaches
a line of script which starts "ActiveDocument...." Debug stops as if it has
reached the end of the routine. Yet if I run the routine normally, by
clicking the "Run" button, it goes all the way through.

I haven't changed any settings so I've no idea why it is suddenly doing
this. I tested it in Word 2000 on the same PC and it stopped in the same
place, as if I'd clicked the "Stop" button itself - no crashes, no error
messages, it just stops the debug run-through dead.

Nothing is automated from VB or anything else, this is a straightforward
attempt in Word VBA to debug my script. There's far too much code to copy
here, but I've not added anything that would cause this. It even happens old
older saved versions of the file which were definitely okay. Can anyone
help?

Best wishes
Peter




Kessler Associates
E: (e-mail address removed)
W: http://homepages.tesco.net/~plk33/plk33/index.htm
 
C

Cindy Meister -WordMVP-

Hi Peter,

I picked up a couple of messages that were along similar lines, in one of the
developer groups or other (a dotnet one, I think). Those people were saying
something about having installed a patch or an update. Does that ring any
bells with you?
Thanks for the suggestion. I exported and removed all 26 forms and modules
(this is a big project!). Then I created a new template file and re-imported
everything. Then I ran a Debug to see what happened, and I'm afraid it
stopped at the same place; the first "ActiveDocument..." line it came to.

I have tried this on a couple of old backups that definitely used to work,
but they also stop, so my guess is that the problem is with Word itself,
perhaps?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan 24 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