In Excel how can I access the Name Box value (address) in a formu.

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

Guest

I am trying to set a formula to recognise the location of the "cursor" such
as "B2". I only see this information in one place that is the "Name Box"
located in the upper left hand corner of the Excel application.
 
Totally not clear what you want to achieve here! Are you trying to write a
formula, but do not want to type in the referenced cell addresses? Or are
you trying to write a macro, and want to know how to refer to a variable cell
address?
 
What you want is not quite clear.

Try pasting following code in worksheet's code:

'-----
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range("A1").Value = ActiveCell.Address(False, False)
End Sub
'-----

HTH
 

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