Not stopping at breakpoint - upgrading from Word 97 to 2003

G

GrannyM

We're upgrading from Word 97 to Word 2003. In 97 I could open a template,
open the vb editor, make some changes in the code, (not saving them in case
they were incorrect), put in some breakpoints, then go to File/New/General/
select my template, test run the macro and it would stop at my set
breakpoints. When I test a macro in 2003, it doesn't stop at the set
breakpoint. It's like it's opening the saved version of the macro instead of
running the one I already have open. I don't want to just hit run because I
don't want the macro to insert data into my master template. Is there some
setting that needs to be changed in Word 2003 that I'm missing?

Thanks for your help
 
R

RWN

Nothing I know of as far as settings - i.e. we upgraded '97->'03 no problem.

Just a guess, but it sounds like you're confusing yourself(?).
Are you opening the template as a template or a document?
If you're opening it as a document, making your changes and inserting the breakpoints then
doing a File->New you will be running the original, unchanged, version.

FWIW my preference, or routine, is to open the template, as a template, change the file
name (put the date as a version) and save it. Then make my changes etc - save it, close
and File->New to test it.
As usual, there are a number of ways of doing this.
 
G

GrannyM

I'm opening the template as a template. If you close the template after
you've made your changes, how do you stop the macro at a certain point and
then step through the code? Most of our macros load information from a SQL
database for a selected client, then the macro does things with the
information that's been pulled. So when we have a problem, we usually run
the macro up to a certain point, then step through the part of the code that
seems to have the problem. This worked fine in 97, but in 2003, saved or
not, the macro will not stop at breakpoints.
 

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