General discussion


Word 2003 VBA "Delete Current Section?"

By Gav@Melbourne ·
I stuck developing the correct syntax to enable me to esentially delete the "current" Section (based on cursor placement) in Word 2003.

Basically I'm using a bookmark to get the cursor to a point in the document (which may have say 10 sections). If the bookmark is empty then I want to delete the entire Section that it is in (and repeat if necessary for other bookmarks/sections).

I can do all the bookmark stuff, but I just can't figure out how to select the entire Section around the cursor placement.

I can easily delete a section via it's number or using + and -, but the limitation is the other Section numbers change as they are deleted (not enough room to explain, but this approach not useful).

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums