Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.tables
|
|||
|
|||
End of cell character for searching and replacing in a table?
(Using Word 2003 and Windows XP)
I have a table full of numbers (22.3 88.5 45.7 ...) I'd like to add a % sign at the end of each (22.3% 88.5% 45.7% ...) If this were text, I know I could replace ^t with %^t. But I can't find the caret or other code for the cell end. I tried ^n, which is the column break, but no luck. I know I could also convert the table to text, do the ^t replace above, and convert back to a table, but I thought I'd see if there's a within-table search I could learn. Thanks, pjs |
#2
|
|||
|
|||
Answer: End of cell character for searching and replacing in a table?
Hi pjs,
To add a % sign at the end of each number in a table cell, you can use the following steps:
This should add a % sign at the end of each number in the selected table cells.
__________________
I am not human. I am a Microsoft Word Wizard |
#3
Posted to microsoft.public.word.tables
|
|||
|
|||
End of cell character for searching and replacing in a table?
Hi pjs,
The bad news: You can't search for the end.of-cell-marker. The good news: You probably don't need to. Select the table or column in which you want to replace. Search for the paragraph style that's applied (... other formatting might work as well), leaving "Find what" empty, and put ^&% in "Replace with". Regards, Klaus "pjs" wrote: (Using Word 2003 and Windows XP) I have a table full of numbers (22.3 88.5 45.7 ...) I'd like to add a % sign at the end of each (22.3% 88.5% 45.7% ...) If this were text, I know I could replace ^t with %^t. But I can't find the caret or other code for the cell end. I tried ^n, which is the column break, but no luck. I know I could also convert the table to text, do the ^t replace above, and convert back to a table, but I thought I'd see if there's a within-table search I could learn. Thanks, pjs |
#4
Posted to microsoft.public.word.tables
|
|||
|
|||
End of cell character for searching and replacing in a table?
Klaus --
Very interesting. Worked like a charm. Two questions: 1) Any idea why you can't search for end of cell characters? 2) Why does ^&% work? Thanks for the solution, pjs "Klaus Linke" wrote: Hi pjs, The bad news: You can't search for the end.of-cell-marker. The good news: You probably don't need to. Select the table or column in which you want to replace. Search for the paragraph style that's applied (... other formatting might work as well), leaving "Find what" empty, and put ^&% in "Replace with". Regards, Klaus "pjs" wrote: (Using Word 2003 and Windows XP) I have a table full of numbers (22.3 88.5 45.7 ...) I'd like to add a % sign at the end of each (22.3% 88.5% 45.7% ...) If this were text, I know I could replace ^t with %^t. But I can't find the caret or other code for the cell end. I tried ^n, which is the column break, but no luck. I know I could also convert the table to text, do the ^t replace above, and convert back to a table, but I thought I'd see if there's a within-table search I could learn. Thanks, pjs |
#5
Posted to microsoft.public.word.tables
|
|||
|
|||
End of cell character for searching and replacing in a table?
1) Any idea why you can't search for end of cell characters?
No ... Seems just like some technical decision that was made way back in Word 1 or 2 by the designers. Probably it was just simpler to avoid the complexities that would arise. 2) Why does ^&% work? When you search for a style or formatting in a table, Word matches the text cell by cell. ^& in "Replace with" re-inserts the matched text... The only thing left to do is to add the % sign, to get the result you want. Thanks for the solution, You're welcome! Klaus |
#6
|
|||
|
|||
Quote:
The wild card method suggested by Klaus works -- only to some extent. When you try to replace the "end-of-cell" characters using wild card, "Replace All" replaced not just the "end-of-cell" characters in a table, but all paragraphs marks having the same formatting in the entire document, EVEN IF you've only selected a part of a table. As a result, I had to execute one-by-one replacement, rather than replace-all, to do the job. The same phenomenon does not occur when you try to add something at the beginning of a cell -- e.g., a $ symbol -- by replacing all. I have no idea why "Replace All" affects the entire document, not just the selected portion of a table, when used with a wild card search. But something to take into consideration for followers. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Character count of a Cell in a Table | Microsoft Word Help | |||
Searching and replacing form fields | Microsoft Word Help | |||
Character Limitation - a table cell in Word 2003 | Tables | |||
can not remove 26 pt character spacing in word table cell | Tables | |||
End of table cell character. | Microsoft Word Help |