Naming sections

C

camilla

I's it possible to naming the section instead of using index?

I need tu use something like this instead of a number which is changing when
I insert section.
Activedocument.sections.("Kontrollomfattning").

Regards Camilla
 
J

Jonathan West

Hi Camilla,

camilla said:
I's it possible to naming the section instead of using index?

Unfortunately not.
I need tu use something like this instead of a number which is changing when
I insert section.
Activedocument.sections.("Kontrollomfattning").

One possibility is to place a bookmark at the start of the section. That
way, if you want to select the whole of a specific section, you can use a
line of code like this

ActiveDocument.Bookmarks("Kontrollomfattning").Range.Sections(1).Range.Selec
t


--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
 
Top