Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
cbre_bryork
 
Posts: n/a
Default Is there a function that will return info of the cursor location?

Is there a function that I could place in cell A1 that will return
information on whatever cell is selected in on the spreadsheet? So for
instance, if the current cursor position is in cell D3, I would like cell A1
to display "D3". And if I move the cursor to cell E5, I would like cell A1
to display "E5"
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Not a function but event code

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

Range("I1").Value = Target.Address(False, False)
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--

HTH

RP
(remove nothere from the email address if mailing direct)


"cbre_bryork" wrote in message
...
Is there a function that I could place in cell A1 that will return
information on whatever cell is selected in on the spreadsheet? So for
instance, if the current cursor position is in cell D3, I would like cell

A1
to display "D3". And if I move the cursor to cell E5, I would like cell

A1
to display "E5"



  #3   Report Post  
Tom Ogilvy
 
Posts: n/a
Default

For a formula only partial solution:

=CELL("Address")

But this will only update when a calculation occurs - not when the cell is
selected. .


--
Regards,
Tom Ogilvy



"cbre_bryork" wrote in message
...
Is there a function that I could place in cell A1 that will return
information on whatever cell is selected in on the spreadsheet? So for
instance, if the current cursor position is in cell D3, I would like cell

A1
to display "D3". And if I move the cursor to cell E5, I would like cell

A1
to display "E5"



  #4   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Just wondering.....why do you need a function/formula/code to do this?

Right now, if you look directly above cell A1 you'll see what cell is
selected. (unless you have chosen to not display the formula bar)

Biff

"cbre_bryork" wrote in message
...
Is there a function that I could place in cell A1 that will return
information on whatever cell is selected in on the spreadsheet? So for
instance, if the current cursor position is in cell D3, I would like cell
A1
to display "D3". And if I move the cursor to cell E5, I would like cell
A1
to display "E5"



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
Function to Return another Worksheets Name Dawg House Inc Excel Worksheet Functions 7 March 22nd 05 07:10 PM
Return value with using Excel function SNOWBALLCHAN New Users to Excel 1 February 21st 05 07:25 AM
Function to return colour of formatted cell ExcelMonkey Excel Worksheet Functions 3 November 1st 04 05:54 PM


All times are GMT +1. The time now is 11:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"