Results 1 to 9 of 9

Thread: Get Return Value Of Active Cell On Change Of Selection Change

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member
    Join Date
    Jun 2012
    Posts
    39
    Rep Power
    0
    Do I have to do it for different sheets in the same workbook?

  2. #2
    Junior Member
    Join Date
    Dec 2012
    Posts
    6
    Rep Power
    0
    I believe that is correct.

  3. #3
    Senior Member LalitPandey87's Avatar
    Join Date
    Sep 2011
    Posts
    222
    Rep Power
    15
    You can try this and no need to replicate the code just follow the steps:

    1. Open excel
    2. Press Alt + F11
    3. In the right side you can see Project explore if not press Ctrl + R
    4. Double click on ThisWorkbook
    5. Paste below code

    Code:
    Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
        Range("a1").Value = ActiveCell.Value
    End Sub

  4. #4
    Member
    Join Date
    Jun 2012
    Posts
    39
    Rep Power
    0
    Thanks. Also I used the sheet name so that I can get the desired result, whereever the active cell is cell A1 of sheet1 will show the content.

Similar Threads

  1. Replies: 1
    Last Post: 05-03-2013, 04:41 PM
  2. Change Display Range Based On Change of Dropdown Values
    By rich_cirillo in forum Excel Help
    Replies: 2
    Last Post: 03-29-2013, 04:58 AM
  3. Worksheet Change Event
    By jamilm in forum Excel Help
    Replies: 2
    Last Post: 12-29-2012, 12:06 AM
  4. Change listbox value
    By Tony in forum Excel Help
    Replies: 4
    Last Post: 12-04-2012, 08:58 PM
  5. Replies: 1
    Last Post: 08-21-2012, 07:36 PM

Posting Permissions

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