L
LRL
My question concerns copying a formula in a cell that refers to another cell
using relative references, then pasting that cell and it's formula to another
cell and maintaining the correct relationships.
Suppose cell (10,10) refers to cell (9,9) using formula =R[-1]C[-1].
If I insert a column and row between cell (10.10) and cell (9.9), the
spreadsheet correctly changes the formual to =R[-2]C[-2]. But if I select
cell (10.10), then paste it to some other cell, the formula is maintained as
=R[-2]C[-2]. The formula in the cell that I just pasted into will not refer
to cell (9,9).
Is there someway of forcing Excel to update the relative references in the
formula when I do a copy?
Note that I really want to do this programmatically in a macro but I can't
seem to find a way to do this without jumping through some hoops. If there
was some way of doing it, then I could just record a macro and see how it's
done.
I'm using Excel X and Excel 2004 with the latest updates on Tiger with the
latest updates.
Thanks
Leslie
using relative references, then pasting that cell and it's formula to another
cell and maintaining the correct relationships.
Suppose cell (10,10) refers to cell (9,9) using formula =R[-1]C[-1].
If I insert a column and row between cell (10.10) and cell (9.9), the
spreadsheet correctly changes the formual to =R[-2]C[-2]. But if I select
cell (10.10), then paste it to some other cell, the formula is maintained as
=R[-2]C[-2]. The formula in the cell that I just pasted into will not refer
to cell (9,9).
Is there someway of forcing Excel to update the relative references in the
formula when I do a copy?
Note that I really want to do this programmatically in a macro but I can't
seem to find a way to do this without jumping through some hoops. If there
was some way of doing it, then I could just record a macro and see how it's
done.
I'm using Excel X and Excel 2004 with the latest updates on Tiger with the
latest updates.
Thanks
Leslie