Quick question, new to VBA, how do you change cell data in a certain range according to data filter in other range?
For the Code as follows I want to first identify if values from E11 to G13 are 0. If they are, I want to change the corresponding cells in Range O9 to Q11 to 0 as well. If the values from E11 to G13 are not 0, keep the original values in range O9 to Q11.
Need help. Thanks!
Sub If_loop2()
For Each Cell In Range("O9:Q11")
If Range("E11:G13").Value = 0 Then
Cell.Value = 0
Else
Cell.Value = Cell.Value
End If
Next Cell
End Sub