Word 2003 VBA "Delete Current Section?" - TechRepublic
General discussion
March 29, 2005 at 01:12 AM
gav@melbourne

Word 2003 VBA “Delete Current Section?”

by gav@melbourne . Updated 16 years, 9 months ago

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 discussion is locked

All Comments