Word: Add something just before a table cell markerJuly 7, 2011
Did you know that you can add something (perhaps a missing period or a % symbol) just before each cell marker in a Word table? By default, there’s no easy way to find the cell markers using Word’s Find and Replace, but with a little trickery you can do it.
The critical thing that allows this to work is knowing the style used for the table cells. Word has to have something to find and as it can’t find a cell marker and as the text in each cell is different, there needs to be something it can hook on to — the style is what we get it to look for. Once Word’s got something to find, it can perform the replace action.
In the steps below, I take you through how to add a period to the end of each selected cell in a table (substitute your own character(s) for the period if you want something different). This technique works in Word 2003 and later.
- Locate the table where you want to add the period to the end of each cell.
- Check the style used for the cells (e.g. Table Cell). The style should be the same for each cell where you want to make the change. If it’s not the same, make it the same — you can always change it back later.
- Select the cells you want to change. Don’t worry about what text is in the cells — it will all still be there after you do the Find/Replace.
- Press Ctrl+H to open the Find and Replace dialog box. The cursor is in the Find what field — DO NOT type anything in here!
- Click the More button.
- Click the Format button and select Style from the list.
- In the Find Style dialog box, type the first letter of the style’s name (e.g. t for Table Cell) to jump to that section in the list. Scroll to find the style’s name (e.g. Table Cell), select it, then click OK. The style name is listed below the Find What field.
- Move your cursor into the Replace with field.
- Type ^&. (that’s the caret character [Shift+6], followed immediately by the ampersand [Shift+7], followed immediately by a period — the character you’re adding in this exercise).
- Click Replace All.
And you’re done!
By the way, the ^& part of the replace string means replace the same text with what you already had.
- For a macro to remove spaces at the end of table cells, see: http://americaneditor.wordpress.com/2014/05/05/lyonizing-word-removing-spaces-at-the-ends-of-table-cells/
[Links last checked May 2014; thanks to my friend Char who asked the question and sent me on the chase to find out the answer]