D
drhansenjr
I am looking for a way (either macro or VBA) to perform one simple task:
while in *any cell* of your choice in the current worksheet, switch to
another specific sheet, choose *any* cell, grab a reference to that
cell (not its value), switch back to the first worksheet and slap in
the reference of the cell in the other sheet.
This would be the automated equivalent of doing the following
manually:
1) Select *any cell* (say *F11*) in the current sheet (Call it
"*Destination*").
2) Press "=" (no "ENTER")
3) Click the tab for the other sheet (call it "*Source*")
4) Select *any cell * (say *D50*) within *Source*
5) Press the ENTER key.
6) *F11* now contains the reference formula: *"=Source!D50"*
Ideas?
I tried to record a macro to do this, but as soon as I type "=" and
select the tab for the second sheet, I can end the macro without
selecting a specific cell in the "source" sheet and pressing ENTER --
which of course grabs the reference of that one cell, but doesn't allow
me to choose a different cell each time.
Help!!
while in *any cell* of your choice in the current worksheet, switch to
another specific sheet, choose *any* cell, grab a reference to that
cell (not its value), switch back to the first worksheet and slap in
the reference of the cell in the other sheet.
This would be the automated equivalent of doing the following
manually:
1) Select *any cell* (say *F11*) in the current sheet (Call it
"*Destination*").
2) Press "=" (no "ENTER")
3) Click the tab for the other sheet (call it "*Source*")
4) Select *any cell * (say *D50*) within *Source*
5) Press the ENTER key.
6) *F11* now contains the reference formula: *"=Source!D50"*
Ideas?
I tried to record a macro to do this, but as soon as I type "=" and
select the tab for the second sheet, I can end the macro without
selecting a specific cell in the "source" sheet and pressing ENTER --
which of course grabs the reference of that one cell, but doesn't allow
me to choose a different cell each time.
Help!!