Excel Formatting Question
Does anyone know how to have Excel automatically format cells depending on the contents being values, formulas, off-worksheet references (i.e. blue / black / green) without using a paid plug-in? I am trying to get this to work with conditional formatting but am having no luck. Thanks.
bump
F5 go to special.
Test this in a separate workbook first. Not sure how you want to select the greens. In case you want to choose different colors you can switch the code to .color = rgb(x, y, z)
Here's my fav link to color codes. http://dmcritchie.mvps.org/excel/colors.htm
Sub FontColor() ' ' For each worksheet in active workbook ' Select cells containing formulas, then constants ' Color these cells Black and Blue, respectively '
Dim ws As Worksheet Application.ScreenUpdating = False On Error Resume Next For Each ws In ActiveWorkbook.Worksheets ws.Activate Cells.SpecialCells(xlCellTypeFormulas, 23).Select With Selection.Font .ColorIndex = 1 End With Cells.SpecialCells(xlCellTypeConstants, 23).Select With Selection.Font .ColorIndex = 5 End With Next ws Application.ScreenUpdating = TrueEnd Sub
Mollitia quasi et minus occaecati architecto. Deleniti vel inventore blanditiis saepe repudiandae non.
Delectus quo voluptas quia quae nobis rerum. Velit consequuntur laudantium voluptates minima facere.
See All Comments - 100% Free
WSO depends on everyone being able to pitch in when they know something. Unlock with your email and get bonus: 6 financial modeling lessons free ($199 value)
or Unlock with your social account...