Discussion:
Can table cells shading be conditional on data in a merge database
(too old to reply)
Mike F
2010-05-03 21:27:01 UTC
Permalink
I'd like to use a word document containing tables as the basis of a merge
document. The database will contain certain numbers and I would like to
colour-shade certain numbers of table cells according to the numerical data
in the database.

Anyone suggest how to do this??
Doug Robbins - Word MVP
2010-05-04 03:16:24 UTC
Permalink
By the use of an If...then...Else field construction that returned
mergefields to which the Charformat switch was added, you could control the
colour of the font for the result, but not the shading of the cells.

If would be necessary to use VBA to control the colour-shade of the cells.
--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
Post by Mike F
I'd like to use a word document containing tables as the basis of a merge
document. The database will contain certain numbers and I would like to
colour-shade certain numbers of table cells according to the numerical data
in the database.
Anyone suggest how to do this??
macropod
2010-05-04 05:37:42 UTC
Permalink
Alternatively, one could use an If...then...Else field construction to output different tables, shaded according to whatever the
colouring criteria are.
--
Cheers
macropod
[Microsoft MVP - Word]
By the use of an If...then...Else field construction that returned mergefields to which the Charformat switch was added, you could
control the colour of the font for the result, but not the shading of the cells.
If would be necessary to use VBA to control the colour-shade of the cells.
--
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
Post by Mike F
I'd like to use a word document containing tables as the basis of a merge
document. The database will contain certain numbers and I would like to
colour-shade certain numbers of table cells according to the numerical data
in the database.
Anyone suggest how to do this??
Loading...