R
rutica
Hello,
I have a Word 2003 text box that is a Merge field from Excel. I would
like the Fill Color of the text box to change depending on the value of
the box. (The values can be only Red, Yellow, Green or Purple).
That is what I tried:
{ IF { MERGEFIELD "Risk_Issue_KPI_Score" } = "Red"
Selection.ShapeRange.Line.BackColor.RGB = RGB(255, 0, 0) }
{ IF { MERGEFIELD "Risk_Issue_KPI_Score" } = "Yellow"
Selection.ShapeRange.Line.BackColor.RGB = RGB(255, 255, 0) }
etc
But that is not the right format.
Help!
Thanks,
I have a Word 2003 text box that is a Merge field from Excel. I would
like the Fill Color of the text box to change depending on the value of
the box. (The values can be only Red, Yellow, Green or Purple).
That is what I tried:
{ IF { MERGEFIELD "Risk_Issue_KPI_Score" } = "Red"
Selection.ShapeRange.Line.BackColor.RGB = RGB(255, 0, 0) }
{ IF { MERGEFIELD "Risk_Issue_KPI_Score" } = "Yellow"
Selection.ShapeRange.Line.BackColor.RGB = RGB(255, 255, 0) }
etc
But that is not the right format.
Help!
Thanks,