Avatar of Andreas Hermle
Andreas Hermle
Flag for Germany

asked on 

Conditionally apply a font color to rows using VBA

Dear Experts:

I got a big word document with hundreds of tables.

Dozens of the rows of these 8 column tables have an entry in the 8th column, saying 'blue'.

I now would like to run a macro that performs the following action.

Whenever a row in any of these tables has the entry 'blue' in the 8th column, the text entries of the whole row have to have a blue font color (RGB 0,0,255).

Help is much appreciated. Thank you very much in advance.

I have attached a sample file for your convenience.

Regards, Andreas

VBAMicrosoft Word

Avatar of undefined
Last Comment
Andreas Hermle

8/22/2022 - Mon