Consulting

Results 1 to 5 of 5

Thread: Solved: Copy and Paste to an Active Cell on a Different Worksheet

  1. #1
    VBAX Expert
    Joined
    May 2006
    Location
    Oklahoma City, OK
    Posts
    532
    Location

    Solved: Copy and Paste to an Active Cell on a Different Worksheet

    I want to copy a cell from a worksheet named "Symbols" to an active cell on a worksheet called "Scorecard". Here's what I've come up with, but I can't get it to copy to the active or selected cell on the other worksheet. It does copy, but to another cell on the "ScoredCard" worksheet thats not active or selected.

    Best Regards,

    Charlie

    Sub F7()

    Sheets("Symbols").Range("A3").Select
    Selection.Copy
    Sheets("ScoreCard").Select
    Range(ActiveCell).Select
    ActiveSheet.Paste


    End Sub

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    You can only have an active cell on an active sheet, in which case this should work.
    [VBA]
    Sheets("Symbols").Range("A3").Copy ActiveCell

    [/VBA]
    If ScoreCard is not active, you'll need to provide an address.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    VBAX Expert
    Joined
    May 2006
    Location
    Oklahoma City, OK
    Posts
    532
    Location
    Thanks MD for responding. I tried your coding, but it didn't copy the cell to the active or selected cell on the "ScoreCard" worksheet. I would post my worksheet, but my HTML is turned off on my VBAExpress for some reason and can't figure out how to turn it on.

    Best regards,

    Charlie

  4. #4
    VBAX Expert
    Joined
    May 2006
    Location
    Oklahoma City, OK
    Posts
    532
    Location
    Thanks MD I got it to work. Have a great day.

    Best regards,

    Charlie

  5. #5
    Deleted

Posting Permissions

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