J
Jim
My spreadsheet is as follows:
B C D E
2 6 5 6 7
B2 has the formula ='sheet1'!D7 which is linked to a web
query which is updated once per day. When the value
in 'sheet1'!D7 changes, B2 takes on the new value and C2
takes on the value of B2 and D2 takes on the value of C2
etc.
I am using the following macro,
Range("E2").value=Range("D2").value
Range("D2").value=Range("C2").value
Range("C2").value=Range("B2").value
Range("B2").value=""
The problem is that I am losing the cell reference in B2
ie: ='sheet1'!D7. Do you know how I should program the
macro to keep the reference to sheet1? Thanks.
B C D E
2 6 5 6 7
B2 has the formula ='sheet1'!D7 which is linked to a web
query which is updated once per day. When the value
in 'sheet1'!D7 changes, B2 takes on the new value and C2
takes on the value of B2 and D2 takes on the value of C2
etc.
I am using the following macro,
Range("E2").value=Range("D2").value
Range("D2").value=Range("C2").value
Range("C2").value=Range("B2").value
Range("B2").value=""
The problem is that I am losing the cell reference in B2
ie: ='sheet1'!D7. Do you know how I should program the
macro to keep the reference to sheet1? Thanks.