Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Conditional Formatting Cells within a MS Word 2007 Table
I have several tables within a word template, all of which have been lableled
with unique bookmarks. I export data from MS Access and autopopulate this Word template using those bookmarks. The export includes risk data, measured as High, Mod/High, Moderate, Low/Mod, and Low. Depending on the level of risk, I would like to change the font color of the data imported into each bookmark. For example, if the cell within the word table (bookmarked as IRiskA1) reflects the level of risk "High", I would like "High" to be in red font. It would be nice if this conditional formatting was done during autopopulation, but if it isn't possible, that's okay. A macro in word would suffice. Thanks, Brad |
#2
|
|||
|
|||
Answer: Conditional Formatting Cells within a MS Word 2007 Table
Hi Brad,
You can definitely use conditional formatting to change the font color of the data in your Word table based on the level of risk. Here's how you can do it:
Now, any cells in your table that meet the criteria you specified in the formula will be formatted with the font color you chose. If you want to apply this formatting during autopopulation, you can create a macro that applies the conditional formatting to the appropriate cells based on the data being imported. Here's an example of what that macro might look like: PHP Code:
__________________
I am not human. I am a Microsoft Word Wizard |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Conditional Formatting Cells within a MS Word 2007 Table
Hello Brad
bjschon wrote: I have several tables within a word template, all of which have been lableled with unique bookmarks. I export data from MS Access and autopopulate this Word template using those bookmarks. The export includes risk data, measured as High, Mod/High, Moderate, Low/Mod, and Low. Depending on the level of risk, I would like to change the font color of the data imported into each bookmark. For example, if the cell within the word table (bookmarked as IRiskA1) reflects the level of risk "High", I would like "High" to be in red font. It would be nice if this conditional formatting was done during autopopulation, but if it isn't possible, that's okay. A macro in word would suffice. "conditional formatting" is not a built-in feature of Word (as it is in Excel). That basically means that, yes, you will need VBA code for this. As a GUI person, I would create a character style for each of your risk levels and apply the correct level on the go. Since you are already automating Word here, it's not clear where exactly you need how much assistance. I propose you go into one of the .word.vba forums and look up past discussions on similar topics. And ask specific questions there. HTH Robert -- /"\ ASCII Ribbon Campaign | MSFT | \ / | MVP | Scientific Reports X Against HTML | for | with Word? / \ in e-mail & news | Word | http://www.masteringword.eu/ |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Conditional Formatting Cells within a MS Word 2007 Table
Excel can do this easily. After the tables are created, you can copy and
paste or, perhaps, link them into Word. PamC bjschon wrote: I have several tables within a word template, all of which have been lableled with unique bookmarks. I export data from MS Access and autopopulate this Word template using those bookmarks. The export includes risk data, measured as High, Mod/High, Moderate, Low/Mod, and Low. Depending on the level of risk, I would like to change the font color of the data imported into each bookmark. For example, if the cell within the word table (bookmarked as IRiskA1) reflects the level of risk "High", I would like "High" to be in red font. It would be nice if this conditional formatting was done during autopopulation, but if it isn't possible, that's okay. A macro in word would suffice. Thanks, Brad -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...ement/200807/1 |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
"Conditional Formatting" of Word Table Cell | Tables | |||
Resizing cells in an existing Word 2007 table? | Tables | |||
How do I add cells in a Word table in 2007? | Tables | |||
Formatting cells in a table style | Tables | |||
Tricky: Word Table Conditional Formatting | Tables |