Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2018, 04:24 PM
jeffreybrown jeffreybrown is offline Split sentence at bold word Windows Vista Split sentence at bold word Office 2007
Expert
Split sentence at bold word
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default Split sentence at bold word

I'm converting a PDF into Word and one area that converts wrong is an area of Acronyms followed by their definitions.



An example:
IAW—In-accordance with
BTW—By the way
MPG—Mile per gallon PSI—Pound per Square Inch
UPS—Universal Parcel Service DFW—Dallas-Fort Worth
GOP—Grand old Party

In the example, you can see the first two acronyms came out right, but the third/fourth lines are two acronyms in one line.

Results needed:
IAW—In-accordance with
BTW—By the way
MPG—Mile per gallon
PSI—Pound per Square Inch
UPS—Universal Parcel Service
DFW—Dallas-Fort Worth
GOP—Grand old Party

Can the line be separated at the bolded acronym?
Reply With Quote
  #2  
Old 08-17-2018, 06:41 PM
macropod's Avatar
macropod macropod is offline Split sentence at bold word Windows 7 64bit Split sentence at bold 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

It's not apparent from your example that one needs to test the bold attribute. Provided the acronyms consist of two or more capitals, a wildcard Find/Replace should suffice, where:
Find = [ ^s^t](<[A-Z]{2,})
Replace = ^p\1
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 08-17-2018, 07:09 PM
jeffreybrown jeffreybrown is offline Split sentence at bold word Windows Vista Split sentence at bold word Office 2007
Expert
Split sentence at bold word
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

That is perfect Paul. Thanks.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Split function in Excel (split the screen) Officer_Bierschnitt Excel 1 07-05-2017 07:02 AM
Customised heading styles to bold but they're not coming out bold seanspotatobusiness Word 2 06-02-2017 02:26 PM
Split sentence at bold word Bold a sentence containing an em dash jeffreybrown Word 8 09-08-2016 05:47 PM
Split sentence at bold word Delete does not bring second sentence closer to first sentence Andoheb Word 29 07-03-2014 01:48 PM
Format Bold in one line makes all lines bold Nitte Word 2 02-07-2013 12:34 AM

Other Forums: Access Forums

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