piercealcatraz
New Member
- Joined
- Aug 18, 2011
- Messages
- 5
Hello all,
I am using Excel 2003 and am frustrated trying this myself as I have very basic knowledge of Vba.
I have values in I2 and I3, and I want the code to run as a worksheet_change IF these two cells equal two other cells in W19 and X19, respectively, then I4 = Y19, I5 = Z19, I6 = AA19, etc. But if I2 and I3 = W20 and X20, then I4 = Y20, I5 = Z20, I6 = AA20, etc.
So something like...IF I2 = W19 and I3 = X19 Then
I4 = Y19, I5 = Z19, I6 = AA19 Else If
I2 = W20 and I3 = X20 Then
I4 = Y20, I5 = Z20, I6 = AA20
Thank you in advance.
I am using Excel 2003 and am frustrated trying this myself as I have very basic knowledge of Vba.
I have values in I2 and I3, and I want the code to run as a worksheet_change IF these two cells equal two other cells in W19 and X19, respectively, then I4 = Y19, I5 = Z19, I6 = AA19, etc. But if I2 and I3 = W20 and X20, then I4 = Y20, I5 = Z20, I6 = AA20, etc.
So something like...IF I2 = W19 and I3 = X19 Then
I4 = Y19, I5 = Z19, I6 = AA19 Else If
I2 = W20 and I3 = X20 Then
I4 = Y20, I5 = Z20, I6 = AA20
Thank you in advance.