Sub NonBlankCells()
On Error Resume Next
Union(Cells.SpecialCells(xlCellTypeFormulas, 23), Cells.SpecialCells(xlCellTypeConstants, 23)).Select
If Err.Number <> 0 Then
Cells.SpecialCells(xlCellTypeFormulas, 23).Select
Cells.SpecialCells(xlCellTypeConstants, 23).Interior.Color = vbRed
Else
Exit Sub
End If
On Error GoTo 0
End Sub
Friday, 10 November 2017
Color Only filled cells in Excel Macros
Labels:
Excel,
Excel Macros
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment