Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-08-2014, 07:23 PM
SteveWcg SteveWcg is offline Deleting A blank Line that has a specific heading style , word 2010 & 2013 Windows 7 64bit Deleting A blank Line that has a specific heading style , word 2010 & 2013 Office 2013
Novice
Deleting A blank Line that has a specific heading style , word 2010 & 2013
 
Join Date: Jun 2013
Location: Sydney Australia
Posts: 22
SteveWcg is on a distinguished road
Default Deleting A blank Line that has a specific heading style , word 2010 & 2013


One of the few things I like about Word 2010 & 2013 is the naigation pane. However it highlights issues with Heading style that make the TOC a nightmare. I don't recall the issue occurring in 2003 etc

In the Picture Heading Style 2 & 3 have two blank rows in the Navigation Pane because for some reason the style hasn't followed on to Normal properly or user error. Often seems to occur with insert-Break on a Heading where Word. for some reason only know to the fool that designed this bit, leaves the style attached to the break line.

How do I find single empty lines with a style attached. I used to know the word regex for ^$ but can't find it .

Could you tell me what it is. Ta
Reply With Quote
  #2  
Old 01-08-2014, 09:18 PM
macropod's Avatar
macropod macropod is offline Deleting A blank Line that has a specific heading style , word 2010 & 2013 Windows 7 32bit Deleting A blank Line that has a specific heading style , word 2010 & 2013 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

You could use a wildcard Find/Replace where you specify the Find Style for whatever heading you're interested in, combined with:
Find = [^13]{2,}
Replace = ^p
This will delete any empty paragraphs in that Style after the heading. Of course, if Style definitions were being used properly, this would most likely not be an issue, as there generally isn't a good reason for having empty paragraphs between headings and the text to which they relate.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 01-08-2014, 09:33 PM
SteveWcg SteveWcg is offline Deleting A blank Line that has a specific heading style , word 2010 & 2013 Windows 7 64bit Deleting A blank Line that has a specific heading style , word 2010 & 2013 Office 2013
Novice
Deleting A blank Line that has a specific heading style , word 2010 & 2013
 
Join Date: Jun 2013
Location: Sydney Australia
Posts: 22
SteveWcg is on a distinguished road
Default

Thanks I'll give ita go.

Using it properly maybe. Expecting casual users to keep up with the changes not as such.
Reply With Quote
  #4  
Old 01-08-2014, 10:15 PM
macropod's Avatar
macropod macropod is offline Deleting A blank Line that has a specific heading style , word 2010 & 2013 Windows 7 32bit Deleting A blank Line that has a specific heading style , word 2010 & 2013 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

Word has always worked with Styles (i.e. for over two decades). I still have a reference manual from 1993 describing their use ...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 01-08-2014, 10:20 PM
SteveWcg SteveWcg is offline Deleting A blank Line that has a specific heading style , word 2010 & 2013 Windows 7 64bit Deleting A blank Line that has a specific heading style , word 2010 & 2013 Office 2013
Novice
Deleting A blank Line that has a specific heading style , word 2010 & 2013
 
Join Date: Jun 2013
Location: Sydney Australia
Posts: 22
SteveWcg is on a distinguished road
Default

Ok hence the MVP in your title

I keep getting documents to review from people who haven't read he manual and keep hitting enter twice after a Heading cause that's how they've always done it.

Happy for you to convince them otherwise.

Your solution didn't work as that finds ^p^p not ^(Beginning of line)^p with a style
Reply With Quote
  #6  
Old 01-08-2014, 10:37 PM
macropod's Avatar
macropod macropod is offline Deleting A blank Line that has a specific heading style , word 2010 & 2013 Windows 7 32bit Deleting A blank Line that has a specific heading style , word 2010 & 2013 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

I thought the problem was with situations where people "keep hitting enter twice after a Heading". However, if you've also got preceding paragraphs is the same Style, you could use:
Find = [^13]{1,}([!^13]@)[^13]{1,}
Replace = \1^p
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
word 2010;, word 2013, word styles hyperlinks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Line Spacing: Word 2010 and 2013 whmc Office 0 06-11-2013 06:59 AM
Which ODF/ .odt version is word 2010, 2013 preview & eventually 2013 full using? semiotically Word 8 11-08-2012 05:44 PM
Deleting A blank Line that has a specific heading style , word 2010 & 2013 Macro to replace one specific heading style with another ubns Word VBA 44 09-04-2012 08:17 PM
Deleting A blank Line that has a specific heading style , word 2010 & 2013 Style Replaced When Deleting a Line WordHostage Word 2 11-26-2011 11:24 AM
Deleting A blank Line that has a specific heading style , word 2010 & 2013 Very frequent heading style, but still not built in Word!!!!! why??? Jamal NUMAN Word 17 06-30-2011 05:47 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:44 AM.


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