View Single Post
 
Old 11-07-2018, 04:00 AM
ldoodle ldoodle is offline Windows 10 Office 2010 32bit
Novice
 
Join Date: Oct 2018
Posts: 17
ldoodle is on a distinguished road
Default Word Sections - Bookmarks

Hi,

Is it possible to make a section a bookmark? What I need to do is change a style for an entire section. This may sound obvious as I could refer to the section by number:

Code:
ActiveDocument.Range.Sections(2).Range.style = "StyleName"
But what if the section number is different between documents. I looked a giving sections a name but that doesn't seem possible, so I thought about putting a bookmark and referring to that bookmark name in code.

Thanks!
Reply With Quote