View Single Post
  #15   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default spell check in protected forms

FWIW, VBE is Visual Basic Editor.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Bear" (nospam) wrote in message
...
Dorothy:

It might help if you watched what was happening as you ran the macro.

To do that, open the macro window (press Alt + F11). Now find the macro,

and
put the cursor in the first line, the Sub RunSpellCheck(), and press F9.

This
should insert a break point at the beginning of the macro, as shown by the
brown dot beside that line.

Whenever the macro is called to run, it will get to that point then enter
debug mode so you can control execution line by line.

If you have two monitors, put the macro window (this is called the VBE --

I
think for visual basic environment) in one monitor and the document in the
other. If you only have one monitor, tile the VBE and the document either
vertically or horizontally so you can see both at once.

Now attempt to run the macro as the user would from the document. When the
macro stops with the first line highlighted, switch to the VBE window (by
clicking the title bar) then step though the macro one line at a time by
pressing F8 to execute each line.

As you go along, see what's happening in the document, or where the macro
encounters trouble.

Bear
--
Windows XP, Word 2000