Consulting

Results 1 to 3 of 3

Thread: Excel 2003/07 How can I get the value of the activecell from another sheet?

  1. #1
    VBAX Expert
    Joined
    Sep 2010
    Posts
    604
    Location

    Excel 2003/07 How can I get the value of the activecell from another sheet?

    I am hoping to find a vba code method to get the value from the cell that is located in another sheet, but it needs to be the cell that was last activated in that sheet.

    Thanks in advance.

    Of course the code below is incorrect, but it shows what I am after.
    Sheets("DESTINATION SHEET").Range("A2").Value = Sheets("SOURCE SHEET").ActiveCell.Value

  2. #2
    VBAX Mentor
    Joined
    Jun 2004
    Posts
    363
    Location
    You'll have to bounce to the sheet to grab the value.

    Sheets("SOURCE SHEET").Activate
    Sheets("DESTINATION SHEET").Range("A2").Value = ActiveCell.Value

  3. #3
    VBAX Expert
    Joined
    Sep 2010
    Posts
    604
    Location
    That did the trick

    Thanks mbarron

Posting Permissions

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