I have a large spreadsheet that will constantly vary in regards to number of rows.
Working on a macro that will highlight (fill) all blank cells in red, then after info is entered in cells it un-highlights (fills).
This is the macro I have started & it colors the cells, but after I enter info in blank cells & re-run macro those cells are still highlighted in red.
Appreciate any help.
Sub HighlightBlankCells()
Dim Dataset As Range
Set Dataset = Selection
Dataset.SpecialCells(xlCellTypeBlanks).Interior.Color = vbRed
End Sub
Working on a macro that will highlight (fill) all blank cells in red, then after info is entered in cells it un-highlights (fills).
This is the macro I have started & it colors the cells, but after I enter info in blank cells & re-run macro those cells are still highlighted in red.
Appreciate any help.
Sub HighlightBlankCells()
Dim Dataset As Range
Set Dataset = Selection
Dataset.SpecialCells(xlCellTypeBlanks).Interior.Color = vbRed
End Sub