Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-03-2015, 07:37 AM
BZee BZee is offline Need help using Find & Replace (MS Word) Windows 8 Need help using Find & Replace (MS Word) Office 2007
Novice
Need help using Find & Replace (MS Word)
 
Join Date: Feb 2015
Posts: 17
BZee is on a distinguished road
Default Need help using Find & Replace (MS Word)

Looking for help with find and replace. I have a large document of 400+ chapters. A sample might be:

Chapter 99^p^t
text^p^t
more text^p^t
Chapter 100^p^t
text^p^t
more text^p^t

I want to change it to have an extra blank line after each "Chapter xxx"



Chapter 99^p^p^t
text^p^t
more text^p^t
Chapter 100^p^p^t
text^p^t
more text^p^t


With over 400 chapters its not exactly practical to add the extra returns manually.
Also is there a good on-line source for learning the ins and outs of find and replace?
Thanks, BZee
Reply With Quote
  #2  
Old 02-03-2015, 08:11 AM
gmayor's Avatar
gmayor gmayor is offline Need help using Find & Replace (MS Word) Windows 7 64bit Need help using Find & Replace (MS Word) Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

For instructions on the Replace function, see http://www.gmayor.com/replace_using_wildcards.htm

For this particular issue, with the wildcard option set search for

Chapter [0-9]{1,}^p

and replace with

^&

and with the cursor in the Replace with box, click Format. Now what you do here depends on how your document is already formatted.

The last thing you want to do is to add empty paragraphs. You could add Paragraph Format > Space After of (say) 24 points, which will increase the space after the Chapter headings, or better still you could create or modify a style for your Chapter headings complete with Space After and use the replace Format function to apply that style.

Styles make reformatting a much more pleasurable task than struggling with manual formatting.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 02-03-2015, 01:58 PM
ptmuldoon ptmuldoon is offline Need help using Find & Replace (MS Word) Windows 7 64bit Need help using Find & Replace (MS Word) Office 2013
Advanced Beginner
 
Join Date: Sep 2014
Posts: 93
ptmuldoon is on a distinguished road
Default

Also check out Greg Maxey's VBA Find and Replace. It may be helpful.

http://gregmaxey.com/word_tip_pages/...d_replace.html
Reply With Quote
  #4  
Old 02-04-2015, 04:19 AM
BZee BZee is offline Need help using Find & Replace (MS Word) Windows 8 Need help using Find & Replace (MS Word) Office 2007
Novice
Need help using Find & Replace (MS Word)
 
Join Date: Feb 2015
Posts: 17
BZee is on a distinguished road
Default

Thanks. I'll do some reading and experimenting.
Reply With Quote
  #5  
Old 02-04-2015, 08:32 AM
Literalman Literalman is offline Need help using Find & Replace (MS Word) Windows 7 64bit Need help using Find & Replace (MS Word) Office 2010 64bit
Advanced Beginner
 
Join Date: Feb 2015
Posts: 66
Literalman is on a distinguished road
Default

I strongly recommend using heading styles (Heading 1, for example) for the chapter titles. Then you can define the amount of space before and after as part of the style, and you can use the headings to build a table of contents.
Reply With Quote
  #6  
Old 02-08-2015, 01:08 PM
BZee BZee is offline Need help using Find & Replace (MS Word) Windows 8 Need help using Find & Replace (MS Word) Office 2007
Novice
Need help using Find & Replace (MS Word)
 
Join Date: Feb 2015
Posts: 17
BZee is on a distinguished road
Default

Quote:
Originally Posted by Literalman View Post
I strongly recommend using heading styles (Heading 1, for example) for the chapter titles. Then you can define the amount of space before and after as part of the style, and you can use the headings to build a table of contents.
Although I've been using MSWord for years, I have not used it extensively nor done anything sophisticated. What I'm working with now is a 400+ chapter story that the author posted on-line for download. He posted in pdf format which is fine on a computer but doesn't work well on an e-reader so I uploaded it to Adobe for conversion to .docx format. The conversion is not perfect and I'm clean up the document for better display on my Kindle.
Reply With Quote
  #7  
Old 02-08-2015, 02:22 PM
macropod's Avatar
macropod macropod is offline Need help using Find & Replace (MS Word) Windows 7 64bit Need help using Find & Replace (MS Word) Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Text copied from PDFs, emails, web pages etc., often needs cleaning up to make it useful in Word. Common symptoms include paragraphs that have breaks at the end of each line. For a macro to do such clean-ups, see: https://www.msofficeforums.com/word/...html#post32907
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #8  
Old 02-12-2015, 03:54 AM
BZee BZee is offline Need help using Find & Replace (MS Word) Windows 8 Need help using Find & Replace (MS Word) Office 2007
Novice
Need help using Find & Replace (MS Word)
 
Join Date: Feb 2015
Posts: 17
BZee is on a distinguished road
Default

My converted PDFs don't have that particular problem but maybe that macro will help in other ways. Thanks.
Reply With Quote
  #9  
Old 02-16-2015, 06:28 AM
Gweilo Gweilo is offline Need help using Find & Replace (MS Word) Windows XP Need help using Find & Replace (MS Word) Office 2003
Banned
 
Join Date: Feb 2015
Posts: 6
Gweilo is on a distinguished road
Default

Quote:
Originally Posted by BZee View Post
I'm working with now is a 400+ chapter story that the author posted on-line for download. He posted in pdf format which is fine on a computer but doesn't work well on an e-reader so I uploaded it to Adobe for conversion to .docx format. The conversion is not perfect and I'm clean up the document for better display on my Kindle.
In that case, forget about Word.
Get Calibre, free ebook editor/manager/reader. It can import text in various formats and produce ebooks in both epub and kindle format; and send them to your Kindle after.

If you're converting to ebook much, check out the Mobileread forum, http://www.mobileread.com/forums/ for advice.

Last edited by Gweilo; 02-16-2015 at 08:32 AM.
Reply With Quote
  #10  
Old 02-16-2015, 05:45 PM
BZee BZee is offline Need help using Find & Replace (MS Word) Windows 8 Need help using Find & Replace (MS Word) Office 2007
Novice
Need help using Find & Replace (MS Word)
 
Join Date: Feb 2015
Posts: 17
BZee is on a distinguished road
Default

I answered in your other post. I do some perusal on mobileread.com forums
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help using Find & Replace (MS Word) Find a tag and replace that with a Caption in a Word doc using VBA .InsertCaption Benble Word VBA 3 12-02-2014 03:42 AM
Need help using Find & Replace (MS Word) How do I find/replace the same word in multiple documents? Ineedhelp! Word 3 03-04-2014 03:50 PM
MS Word Find and Replace not working allenglishboy Word 10 07-25-2012 08:05 AM
Need help using Find & Replace (MS Word) Word Find and Replace Query bthart Word 1 12-29-2011 12:45 AM
Need help using Find & Replace (MS Word) Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:07 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