View Single Post
 
Old 04-29-2014, 03:09 AM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Treespicer View Post
I have a little user form that allows the user to select "Case A" or "Case B". I want to then hide or show the applicable test steps. I can do this with something like Bookmarks("Case A").Range.Font.Hidden = True, etc. However, hiding the text of the headings does not cause the heading numbers to re-sequence.
...
I want "Test step 3" to be number 1.3. Is there a simple way to accomplish this? This happens in many locations throughout the document, so I'd rather not have to do a bunch of somersaults with manually changing/re-sequencing the heading numbers all over.
You can't change the numbering sequence by merely hiding the headings. As JulieW suggests, you would have to apply a different Style that doesn't use the numbers.

Do bear in mind too that merely setting a range's font to hidden doesn't stop that range from being viewed or printed; those behaviours are controlled by how Word is configured.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote