#1
|
|||
|
|||
How to change the font color of specific text within a Word table cell
I have hundreds of Word tables that have data cells formatted like:
13.45 [56.34] I know how to highlight or change the font color for the entire cell, but what I want to be able to do is programmatically change ONLY the color of the numbers within the brackets. So the cell would look like: 13.45 [56.34] Thanks in advance. Robert |
#2
|
||||
|
||||
You could do that via two wildcard Find/Replace operations, where:
Find = \[[0-9.]{1,}]\] Replace = ^& and you set the replacement font colour to whatever you want, then Find = [\[\]] Replace = ^& and you set the replacement font colour to whatever the default was.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
||||
|
||||
Cross-posted at: http://www.vbaexpress.com/forum/show...ord-table-cell
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
change font color, vba table |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Advanced Font Color Manipulation In Word: Inserting another color than the surrounding text | stuartg | Word | 1 | 02-20-2017 12:38 AM |
VBA Table – Search All Tables - Find & Replace Text in Table Cell With Specific Background Color | jc491 | Word VBA | 8 | 09-30-2015 06:10 AM |
Table, font color based on what word is in cell | donaldadams1951 | Word Tables | 1 | 04-15-2015 08:37 PM |
How to change the font color of cell values | sky474 | Excel | 7 | 03-06-2014 09:15 AM |
how to search and replace BOLD text >> font color change? | dylansmith | Word | 4 | 03-12-2013 09:51 PM |