Word 2003 bug in Toggle Field Codes (with GoTo bookmark & merged cells)

D

Dan Williams

Word 2003. Create a 2 x 2 table and put a field in one of the lower
cells.

Select the whole table.

Toggle Field Codes (Shift+F9) works fine.
_______________________________

Assign a bookmark to the whole table.

"GoTo" the bookmark.

Toggle Field Codes (Shift+F9) works fine.
_______________________________

Merge the top two cells in the table.

"GoTo" the bookmark.

Toggle Field Codes (Shift+F9) <<<<<<<<< NO LONGER WORKS.
_______________________________

Select the whole table.

Toggle Field Codes (Shift+F9) works fine.
_______________________________

It's very alarming to "upgrade" to Office 2003 and have my well-
established VBA code stop working!

Is there a list of known bugs somewhere?
 
D

Doug Robbins - Word MVP

Your well established VBA code should not be using the Selection object.
Use the Range object instead.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
D

Dan Williams

Your well established VBA code should not be using the Selection object.
Use the Range object instead.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP


















- Show quoted text -

Is there some reason why I shouldn't have been using Selection?
(Other than avoiding this bug?) When I look up ToggleShowCodes in
Word's Help, the first example uses Selection:

Selection.Fields.ToggleShowCodes

Dan Williams
danwPlanet

[For some reason, when I post this reply in Google Groups, it keeps
failing to store. If there are multiple copies in UseNet, my
apologies.]
 

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