#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
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] |
#3
|
|||
|
|||
That is perfect Paul. Thanks.
|
|
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 |
Bold a sentence containing an em dash | jeffreybrown | Word | 8 | 09-08-2016 05:47 PM |
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 |