I am new to vba and i have a problem. I am trying to compare two cells (b1 and c30 on sheet1) and if the are equal then i want to take a value from a third cell (c35 on shee1) and place it in a fourth cell(b2 on sheet data).
Heres what I thought would do it.
sheets("sheet1"
.select
if Range("b1"
.value = Range("c30"
.value then
Range("c35"
.copy
Sheets("data"
.Range("b2"
.value = sheets("sheet1"
.Range("c35"
.value
End if
Could someone please tell me what I am doing wrong?
Thanks
Heres what I thought would do it.
sheets("sheet1"
if Range("b1"
Range("c35"
Sheets("data"
End if
Could someone please tell me what I am doing wrong?
Thanks