Hi,
I have the below code. Is there a way to edit this so that going down each row of a table, if cells in column I and column S of that particular row are both negative, then clear contents of those particular cells only?
Application.ScreenUpdating = False
For i = 1 To lastRow
If Cells(i, "G").Value = "Delta" Then Cells(i, "S").ClearContents
Next i
Application.ScreenUpdating = True
Note the above code works for a different condition I have in a separate sheet, so ideally don't want to re-create something from scratch.
Thanks
I have the below code. Is there a way to edit this so that going down each row of a table, if cells in column I and column S of that particular row are both negative, then clear contents of those particular cells only?
Application.ScreenUpdating = False
For i = 1 To lastRow
If Cells(i, "G").Value = "Delta" Then Cells(i, "S").ClearContents
Next i
Application.ScreenUpdating = True
Note the above code works for a different condition I have in a separate sheet, so ideally don't want to re-create something from scratch.
Thanks