![]() |
|
#1
|
|||
|
|||
![]()
If I have vertical text like this:
1 2 3 4 5 6 7 8 ...and I want to back space every line onto the previous line throughout the whole document, so that it would look like this: 12 34 56 78 ...how would I do it? |
#2
|
||||
|
||||
![]()
Youy could use a wildcard Find/Replace, where:
Find = ([0-9]{1,})[^13^l]([0-9]{1,}[^13^l]) Replace = \1\2 or: Find = ([!^13]{1,})[^13^l]([!^13]{1,}[^13^l]) Replace = \1\2 The first one will work only on lines/paragraphs containing numbers; the second with any content.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]() Quote:
hey, thanks for the help, but the second formula you gave me, which is what I need since I'm not just working with numbers, is only working like this: 1 2 34 5 1 2 34 5 ...as you can see, it's only working on every fourth line. Any advice? |
#4
|
||||
|
||||
![]()
I tested both Find/Replace expressions before posting. For content as depicted in your posts they both work.
Do note that extraneous empty lines between the numbers will throw things off; so too will having the insertion point (selection cursor) anywhere within the numbered range.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
This is specifically what I need to do:
I have mostly four-line text blocks separated by space throughout thousands of pages like this: 1 2 3 4 1 2 3 4 1 2 3 4 ...and I need to make every text block look like this: 1234 1234 1234 I basically need to move the bottom three lines onto the first line in every text block, and I don't care if the space is removed afterwards, so that it looks like this: 1234 1234 1234 ...How can I do this? |
#6
|
||||
|
||||
![]()
The Find/Replace expression I provided will already do that. Running it once converts:
1 2 3 4 5 6 7 8 to: 12 34 56 78 Running it a second time will give you: 1234 5678 It won't remove extraneous lines between individual numbers or groups of numbers, though.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
![]()
It doesn't do that. It does what I stated earlier:
1 2 34 1 2 34 ...And if I keep running it, it eventually just tells me 0 replacements were made, yet there's still 3 lines of text in every text block when there should only be one. |
#8
|
||||
|
||||
![]()
Kindly don't contradict me. It does precisely what I said it does for data as you described. If it's not working for you it's because your data are not as described.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#9
|
|||
|
|||
![]()
What potential things in my document would cause it to not work?
Edit: I apologize. It turns out that I just needed to remove all the formatting from the document, and now it works. Thanks a lot. |
#10
|
||||
|
||||
![]()
This really has nothing to do with formatting. As I have already indicated:
Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Olle | Word | 3 | 10-24-2015 08:52 AM |
![]() |
charles_cat | Word | 1 | 03-03-2015 02:58 AM |
![]() |
danezcou3 | Word | 1 | 04-21-2013 05:38 AM |
printing whole line of text on one space! | stewarta13wsb | Word | 4 | 06-20-2012 04:43 PM |
Two Issues Remove Line and unwanted space | WorkerB | Word | 3 | 07-25-2011 11:38 PM |