ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   linking to cell data (https://www.excelbanter.com/excel-discussion-misc-queries/53311-linking-cell-data.html)

Kmeredith

linking to cell data
 
I'm trying to write a macro or something that will be able to link to a
cell's data even if it moves. For example, if i have data in A2: "Office1"
and i want cell E3 to link to that data. Now, if the original data in A2
moves, i want the link to follow where it moves to. If i moved the linked
cell, E3 i want the link to stay at the original A2, or where it moves to.
does this make sense?

Thanks!

Jim Sweet

linking to cell data
 
Sounds like a perfect example of the need for a named range. Place your cell
pointer on the cell you wish to follow(a2 in yr example) as it moves and
choose Insert, Name, Define and key a descriptive name for the cell. The
formula pointing to it should now also display the range name instead of the
previous cell address. As long as this name isn't deleted, the formula should
keep track of it no matter where it gets moved in the workbook.

Hope this helps and good luck!!

"Kmeredith" wrote:

I'm trying to write a macro or something that will be able to link to a
cell's data even if it moves. For example, if i have data in A2: "Office1"
and i want cell E3 to link to that data. Now, if the original data in A2
moves, i want the link to follow where it moves to. If i moved the linked
cell, E3 i want the link to stay at the original A2, or where it moves to.
does this make sense?

Thanks!


Kmeredith

linking to cell data
 
Thanks Jim for your response. I was wondering though if you could give me an
example on what you're talking about. I'm familliar with some of what your
saying but not all of it. thanks!



"Jim Sweet" wrote:

Sounds like a perfect example of the need for a named range. Place your cell
pointer on the cell you wish to follow(a2 in yr example) as it moves and
choose Insert, Name, Define and key a descriptive name for the cell. The
formula pointing to it should now also display the range name instead of the
previous cell address. As long as this name isn't deleted, the formula should
keep track of it no matter where it gets moved in the workbook.

Hope this helps and good luck!!

"Kmeredith" wrote:

I'm trying to write a macro or something that will be able to link to a
cell's data even if it moves. For example, if i have data in A2: "Office1"
and i want cell E3 to link to that data. Now, if the original data in A2
moves, i want the link to follow where it moves to. If i moved the linked
cell, E3 i want the link to stay at the original A2, or where it moves to.
does this make sense?

Thanks!



All times are GMT +1. The time now is 03:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com