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
Expedita non et omnis ratione facere laborum id. Neque suscipit enim dignissimos et suscipit nulla. Ut dolore voluptas aut sed veritatis voluptatem ducimus id.
Similique dolorum ut error quibusdam perferendis. Voluptatem voluptas temporibus reiciendis in magni velit. Eveniet eum beatae similique voluptates itaque tenetur ab. Quae nostrum atque totam iste.
Molestiae tempore culpa eum sint. Labore facere nemo sed nihil est.
Numquam et aliquam repellat. Cupiditate qui quo ut. Quos sint natus necessitatibus quia earum facere nobis. Fuga inventore veniam nihil asperiores quaerat ducimus.
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...