ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   macro color change (https://www.excelbanter.com/excel-worksheet-functions/13284-macro-color-change.html)

Dan

macro color change
 
I have an inspection report that shows my out of tolerance numbers as red. I
can't figure out how to ad to the macro to include arial black font and bold
to the code. I would like this added so when printing in black, the numbers
are easy to spot. Here is part of the macro that needs the addition


Do Until ActiveCell.Value = ""
Do Until TCount = Count
If ActiveCell.Value = 1 Then
ActiveCell.Offset(0, ISOffset).Font.ColorIndex = 1
Else
ActiveCell.Offset(0, ISOffset).Font.ColorIndex = 3
End If
TCount = TCount + 1
ActiveCell.Offset(0, 1).Activate
Loop
ActiveCell.Offset(1, (TCount * -1)).Activate
TCount = 0
Loop


All times are GMT +1. The time now is 10:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com