I have the following code code so that if something is entered in cell range G11 then H11 equals "9".
If ActiveSheet.Range("G11") > 0 Then ActiveSheet.Range("H11") = "9"
This works fine, but I want to extend the code so that the range is from G11 to G88, so if anything is entered in any of the cells in the range G11 to G88, then the corresponding cell H, should have a "9" entered in it.
If I change the code to:
If ActiveSheet.Range("G11:G88") > 0 Then ActiveSheet.Range("H11:H88") = "9" a "9" appears in all the cells from H11 to H11, which is wrong.
Please can anyone help me with what I am trying to achieve?
Many thanks.
If ActiveSheet.Range("G11") > 0 Then ActiveSheet.Range("H11") = "9"
This works fine, but I want to extend the code so that the range is from G11 to G88, so if anything is entered in any of the cells in the range G11 to G88, then the corresponding cell H, should have a "9" entered in it.
If I change the code to:
If ActiveSheet.Range("G11:G88") > 0 Then ActiveSheet.Range("H11:H88") = "9" a "9" appears in all the cells from H11 to H11, which is wrong.
Please can anyone help me with what I am trying to achieve?
Many thanks.