Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-28-2014, 11:16 AM
Treespicer Treespicer is offline Hiding heading numbers with hidden text Windows 7 64bit Hiding heading numbers with hidden text Office 2007
Novice
Hiding heading numbers with hidden text
 
Join Date: Apr 2014
Posts: 4
Treespicer is on a distinguished road
Default Hiding heading numbers with hidden text

I have a test procedure document that looks something like this:

Code:
1 Test name
1.1 Case A, Test step 1
1.2 Case A, Test step 2
1.3 Case B, Test step 1
1.4 Case B, Test step 2
1.5 Test step 3
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. So if I choose "Case A", the document looks like



Code:
1 Test name
1.1 Case A, Test step 1
1.2 Case A, Test step 2
1.5 Test step 3
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.
Reply With Quote
  #2  
Old 04-28-2014, 05:11 PM
JulieW JulieW is offline Hiding heading numbers with hidden text Windows 7 64bit Hiding heading numbers with hidden text Office 2010 32bit
Novice
 
Join Date: Apr 2014
Location: Canada
Posts: 12
JulieW is on a distinguished road
Default

Maybe instead of use bookmarks, apply a different style to the ones that will be hidden (that is an un-numbered style carrying the hidden text attribute). Hope this helps.
Reply With Quote
  #3  
Old 04-29-2014, 03:09 AM
macropod's Avatar
macropod macropod is offline Hiding heading numbers with hidden text Windows 7 32bit Hiding heading numbers with hidden text Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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
  #4  
Old 04-30-2014, 06:56 AM
Treespicer Treespicer is offline Hiding heading numbers with hidden text Windows 7 64bit Hiding heading numbers with hidden text Office 2007
Novice
Hiding heading numbers with hidden text
 
Join Date: Apr 2014
Posts: 4
Treespicer is on a distinguished road
Default

Thanks, that idea makes sense. I'm okay with hidden text being viewable, since I want the user to be able to modify things manually if needs be.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding heading numbers with hidden text How to add space between heading number and heading text Dr Wu Word 4 07-15-2018 03:52 AM
Control the size of space between heading number and heading text Dr Wu Word 1 07-17-2013 12:24 PM
Word Macro for hiding text Phil Pense Word 1 07-23-2012 08:17 PM
Hiding heading numbers with hidden text Hidden style applied over already-hidden text. christie Word 1 08-17-2011 09:10 AM
Hiding text Reg06 Visio 0 01-15-2011 08:04 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:09 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft