![]() |
#1
|
|||
|
|||
![]() I have text documents that have Cr at the end of each sentence. It really wrecks havoc trying to convert these texts to an ebook format. I wonder if there is a macro that would strip these cr from the text leaving a cr/lf at the end of each paragraph. If not a macro then a way to use find/replace to do it. Thanks, Paul ![]() forgot to mention. OS: Windows XP Pro Office 2003 |
#2
|
||||
|
||||
![]()
It seems doable with 3 replace operation. Replace cr/lf with a unique phrase '@@' for example; then replace Cr with nothing; Replace '@@' with cr/lf.
Please check out another similar thread. |
#3
|
|||
|
|||
![]()
Yes, I checked that one first. Unfortunately, the poster found his solution and didn't share it. Also I try to do a replace operation like this: Find ^|^| Replace: @@
I get the msg: "searched document made 0 replacements" P |
#4
|
||||
|
||||
![]()
In your case, it's cr/lf, not ^|^|.
|
#5
|
|||
|
|||
![]()
I tried that. Same response
![]() |
#6
|
||||
|
||||
![]() Quote:
![]() The solution is very simple - replace operation, but you must figure what to be replaced. |
#7
|
|||
|
|||
![]()
Well when I reveal the codes I see a paragraph symbol at the end of each line, then the next 2 lines each have a single paragraph symbol then another line of text and then the process repeats. What I want to do is have a paragraph symbol only at the end of a paragraph.
|
#8
|
||||
|
||||
![]()
If your document doesn't contain sensitive information, you can upload it here, I will see if I can find a replace pattern.
|
#9
|
|||
|
|||
![]()
Ok here is a sample
Thanks, Paul |
#10
|
||||
|
||||
![]()
Your sample text seems to have only one paragraph, I can't give you complete instruction based on it. It's easy to remove those 3 consecutive paragraph marks, just replace ^p^p^p with nothing, but this replace operation may remove the paragraph marks that you want to keep.
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
jackcoletti | Word | 3 | 02-01-2017 08:10 AM |
![]() |
RHODIUM | Word | 6 | 10-01-2016 04:43 PM |
![]() |
ShaunO | Mail Merge | 1 | 08-19-2016 04:20 PM |
Compare text from Bookmark with text from Text box | Byron Polk | Word VBA | 4 | 07-30-2014 06:18 AM |
![]() |
jbk1043 | Word | 1 | 03-03-2013 01:46 PM |