Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2012, 12:46 PM
JamesVenhaus JamesVenhaus is offline macro or find/replace Windows 7 32bit macro or find/replace Office 2010 32bit
Novice
macro or find/replace
 
Join Date: Feb 2012
Posts: 2
JamesVenhaus is on a distinguished road
Default macro or find/replace

I have a 135-page document that is a stage play. I need to change all of the character's names, which are left-justified, to centered. But, I don't want the dialogue below to be centered. Is there a way to use find/replace or a macro to automate this process? The alternative is to click each character name and then center it, and then click the next one. VERY labor intensive. Here is an example:

What I have now:

BOB
Hello, Fred. How are you?

FRED
I'm fine, Bob.

What I want:

BOB
Hello, Fred. How are you?



FRED
I'm fine, Bob.
Reply With Quote
  #2  
Old 02-27-2012, 03:31 PM
macropod's Avatar
macropod macropod is offline macro or find/replace Windows 7 64bit macro or find/replace Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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

Hi James,

If the the actor name paragraphs were in a different paragraph Style than their words, it'd simply be a matter of changing the Style definitions.

What you can do, though, is to take a given actor's centred paragraph (eg BOB¶), copy it to the Windows clipboard, then use Find/Replace, where:
Find = BOB^p
Replace = ^c
and this will replace all existing BOB paragraphs with centred ones.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 02-27-2012, 03:34 PM
JamesVenhaus JamesVenhaus is offline macro or find/replace Windows 7 32bit macro or find/replace Office 2010 32bit
Novice
macro or find/replace
 
Join Date: Feb 2012
Posts: 2
JamesVenhaus is on a distinguished road
Default

That worked! Thanks for the help. What could have taken hours can now be done in minutes.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
macro or find/replace Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM
macro or find/replace Is there a way to use "find/replace" to find italics words? slayda Word 3 09-14-2011 02:16 PM
macro or find/replace Help with find and replace or query and replace shabbaranks Excel 4 03-19-2011 08:38 AM
find and replace anil3b2 Word 0 08-03-2010 11:30 PM
Find and Replace Macro - A Better Way Tribos Word VBA 0 10-08-2008 03:22 AM

Other Forums: Access Forums

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