Hello all
I hope you can help on this please
I want to change the cell values based on another cell value and below is the code I have been trying to modify for this to work
This macro completes the changes but leaves the value in each cell as "FALSE", I need this to be either blank or 0.00 in each cell.
[
With ThisWorkbook.Sheets("Raw Data")
For r = 1 To .Cells(Rows.Count, "AC").End(xlUp).Row
If Cells(r, "AC") = "RS" Then
If .Cells(r, "R") > 0 Then .Cells(r, "R") = .Cells(r, "R") = ""
If .Cells(r, "S") > 0 Then .Cells(r, "S") = .Cells(r, "S") = ""
If .Cells(r, "T") > 0 Then .Cells(r, "T") = .Cells(r, "T") = ""
If .Cells(r, "AA") > 0 Then .Cells(r, "AA") = .Cells(r, "AA") = ""
If .Cells(r, "AB") > 0 Then .Cells(r, "AB") = .Cells(r, "AB") = ""
End If
Next r
End With]
I hope you can help on this please
I want to change the cell values based on another cell value and below is the code I have been trying to modify for this to work
This macro completes the changes but leaves the value in each cell as "FALSE", I need this to be either blank or 0.00 in each cell.
[
With ThisWorkbook.Sheets("Raw Data")
For r = 1 To .Cells(Rows.Count, "AC").End(xlUp).Row
If Cells(r, "AC") = "RS" Then
If .Cells(r, "R") > 0 Then .Cells(r, "R") = .Cells(r, "R") = ""
If .Cells(r, "S") > 0 Then .Cells(r, "S") = .Cells(r, "S") = ""
If .Cells(r, "T") > 0 Then .Cells(r, "T") = .Cells(r, "T") = ""
If .Cells(r, "AA") > 0 Then .Cells(r, "AA") = .Cells(r, "AA") = ""
If .Cells(r, "AB") > 0 Then .Cells(r, "AB") = .Cells(r, "AB") = ""
End If
Next r
End With]