Hi there,
I'm trying to create a macro which will search through all data in A2-Q2 down and delete any rows where a cell contains red font. This may occur in any column between A-Q. I can only get this to work for a set range but my range will change every day as there may be more rows or less rows? - (for example, in below code, this searches to Q3000 but I need this to change in case I have more or less rows). Can anyone help with this at all?
Sub DeleteRedCells() Dim rng As Range Set rng = [A2:Q3000] For Each Cell In rng If Cell.Font.ColorIndex = 3 Then Cell.ClearContents End If Next Cell End Sub