Discussion Locked

Word 2003 VBA "Delete Current Section?"

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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).

1 reply

by huynhbahuu

Hi! Can I ask how to determine the coordinates of a word in Word using VBA code? (Coordinates with A4 paper over top of the top, left) If you can answer please send to the address below: huynhbahuu@gmail.com

This discussion is closed to new replies.