How do I select a section?

M

mark4asp

Hello,

I want to select an entire section (the section that the cursor
currently resides in). How is that done?

I can't figure out what the ActiveDocument.sections.item does but I
guess I need something like:

ActiveDocument.sections.item( )

but what do I put in the brackets. PS: OK - so the sections are
numbered - but I don't see what use that is as I don't know what
section the cursor is currently in and it is that section which needs
to be selected.
 
D

Doug Robbins - Word MVP

Hi Mark,

Use:

Selection.Sections(1).Range.Select

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
J

JGM

Hi Mark,

This ough to do the trick:

ActiveDocument.Bookmarks("\section").Select

HTH
Cheers!
 

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