I an trying to say;
Delete each row in the range “AS59:AS616” if the cell in row “AS” is empty, EXCEPT for those in which the cell in the same row, 3 columns to the left is NOT empty. I’m just finding my way with vba and the “AND” function is hanging me up. Help would be appreciated.
For Each cell In ActiveSheet.Range("AS16:AS575")
If cell.Value = "" And cell.offset(0,-3)<>”” Then cell.EntireRow.Hidden = True
Delete each row in the range “AS59:AS616” if the cell in row “AS” is empty, EXCEPT for those in which the cell in the same row, 3 columns to the left is NOT empty. I’m just finding my way with vba and the “AND” function is hanging me up. Help would be appreciated.
For Each cell In ActiveSheet.Range("AS16:AS575")
If cell.Value = "" And cell.offset(0,-3)<>”” Then cell.EntireRow.Hidden = True