Hi,
I have a piece of code which searches for the phrase "Global" in a sheet and then deletes that cell and the 4 cells above it:
Cells.Find(What:="Global", After:=ActiveCell, LookIn:= _
xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:= _
xlNext, MatchCase:=False, SearchFormat:=False).Activate
Range("A1625").Select
Range("A1621:A1625").Select
Range("A1625").Activate
Selection.ClearContents
However, how can I get it to automatically find the word delete the cell and then delete the 4 cells above? As the word "Global" will not always be in cell A1625. It will, however, always be in column A if that helps.
Would greatly appreciate assistance with this.
I have a piece of code which searches for the phrase "Global" in a sheet and then deletes that cell and the 4 cells above it:
Cells.Find(What:="Global", After:=ActiveCell, LookIn:= _
xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:= _
xlNext, MatchCase:=False, SearchFormat:=False).Activate
Range("A1625").Select
Range("A1621:A1625").Select
Range("A1625").Activate
Selection.ClearContents
However, how can I get it to automatically find the word delete the cell and then delete the 4 cells above? As the word "Global" will not always be in cell A1625. It will, however, always be in column A if that helps.
Would greatly appreciate assistance with this.