I need help on a macro to automatically delete a whole row with the word "total". There is number next to the total, and I want to delete the whole row. Issue is, every week the name changes, hence I need it to be dynamic. Attached is my code example.
'
' Macro4 Macro
'
'
Selection.AutoFilter
ActiveSheet.Range("$C$1:$C$60").AutoFilter Field:=1, Criteria1:=Array( _
"FR083 Total", "FR087 Total", "FR088 Total", "FR089 Total", "FR091 Total", _
"FR092 Total", "FR093 Total", "FR097 Total", "FR098 Total"), Operator:= _
xlFilterValues
Selection.Delete Shift:=xlToLeft
End Sub
Kindly help on this, thank you!



Microsoft documentation: