NMiller007
Programmer
I am trying to export a report (or query really) to Excel with some basic formatting. I need to change the color of one field if another field is a certain value.
If I set the field to a different color, the formatting flows over.
Because I need conditional formatting based on another field, I have used this code:
When I try to export this report to Excel, all of the NextInsp fields are black.
Is there a way I can do this conditional formatting and export to Excel with the formatting in place?
Thanks!
If I set the field to a different color, the formatting flows over.
Because I need conditional formatting based on another field, I have used this code:
Code:
If (Me.Changed = 1) Then
Me.NextInsp.ForeColor = vbRed
Else
Me.NextInsp.ForeColor = vbBlack
End If
Is there a way I can do this conditional formatting and export to Excel with the formatting in place?
Thanks!