+ Reply to Thread
Results 1 to 4 of 4

Is there a function that will return info of the cursor location?

Hybrid View

Guest Is there a function that will... 05-14-2005, 11:06 AM
Guest Re: Is there a function that... 05-14-2005, 01:06 PM
Guest Re: Is there a function that... 05-14-2005, 09:06 PM
Guest Re: Is there a function that... 05-14-2005, 09:06 PM
  1. #1
    cbre_bryork
    Guest

    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. #2
    Bob Phillips
    Guest

    Re: Is there a function that will return info of the cursor location?

    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" <cbre_bryork@discussions.microsoft.com> wrote in message
    news:70534EAD-C6AB-4A49-BE12-C43E7A05C206@microsoft.com...
    > 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. #3
    Tom Ogilvy
    Guest

    Re: Is there a function that will return info of the cursor location?

    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" <cbre_bryork@discussions.microsoft.com> wrote in message
    news:70534EAD-C6AB-4A49-BE12-C43E7A05C206@microsoft.com...
    > 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. #4
    Biff
    Guest

    Re: Is there a function that will return info of the cursor location?

    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" <cbre_bryork@discussions.microsoft.com> wrote in message
    news:70534EAD-C6AB-4A49-BE12-C43E7A05C206@microsoft.com...
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1