Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Automation: getting the value of a named cell 1

Status
Not open for further replies.

davikokar

Technical User
May 13, 2004
523
IT
Hallo,

I have a cell with a name (example "test"). I don't know how to get the value contained in this cell.

I tried: ActiveWorkbook.Names("test").Value

but I get something like: =Sheet1!$A$1

Is there a way (in VBA) to obtain the value contained in a cell, by using its name, or its reference (=Sheet1$A$1) ?

Thanks
 
Why not simply this ?
Range("test").Value

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top