accessing an address stored in another cell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to access an address stored in another cell? For example:

G100 = "test"

A100 = +G100

Now, can I get any information about the address stored in A100, which is
G100?

In C100, I would like to do something like =ROW(address stored in A100).
 
Thanks, but Indirect wants a textual cell address and that's not what resides
in my target cell (A100).
 
Hi!

In A100 enter G100, don't use the plus sign. You don't need to use plus
signs like that in Excel, anyhow.

So, if you have in cells:

G100 = test
A100 = G100

=INDIRECT(A100) will return test.

Biff
 
Thank you very much! uh -- one little problem. This is the first time I've
used the VB Editor. I pasted in

Function GetFormula(Cell As Range) As String
GetFormula = Cell.Formula
End Function

and still don't get anything but an error, when I do something like

=GetFormula(B1534)
 
Okay, thanks again for the great help. For some reason, both formulas give
me an error. Maybe it has something to do with my version being 97.
 
In the VBE, go to Insert > Module
Then paste the code in this module.

Mangesh
 
You have probably pasted the code in the wrong module. As I said, put in in
a standard module by going to Insert > Module. and then pasting the code.

Mangesh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top