andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hello all,
I have this code that I am using to increase cell values based on another cells contents, however I would like not change my cell values if the column in Data1 is hidden.
I have this code that I am using to increase cell values based on another cells contents, however I would like not change my cell values if the column in Data1 is hidden.
Code:
Sub add()Sheets("Score").Select
Range("D3").Value = Range("D3") + Sheets("Data1").Range("C3")
Range("E3").Value = Range("E3") + Sheets("Data1").Range("D3")
Range("F3").Value = Range("F3") + Sheets("Data1").Range("E3")
Range("G3").Value = Range("G3") + Sheets("Data1").Range("F3")
Range("H3").Value = Range("H3") + (Sheets("Data1").Range("I3") * Sheets("Data1").Range("H3"))
Range("I3").Value = Range("I3") + (Sheets("Data1").Range("J3") * Sheets("Data1").Range("H3"))
End Sub