Consulting

Results 1 to 5 of 5

Thread: Copy data to other sheet

  1. #1
    VBAX Contributor
    Joined
    Apr 2012
    Posts
    107
    Location

    Copy data to other sheet

    VBA for "copy A1 data in Book1 - Excel and paste into another worksheet A1 in Personal - Excel (macro enabled)."
    Attached Images Attached Images

  2. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,059
    Location
    Try the following
    Sub CopyData() 
         With Sheets("Sheet1")
    Range("A1").Copy      
    With Sheets( Sheet2")      
    ActiveSheet.Paste 
          End Sub
    Last edited by SamT; 08-24-2013 at 07:05 AM. Reason: missing code tag bracket
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  3. #3
    VBAX Contributor
    Joined
    Apr 2012
    Posts
    107
    Location

    Copy data to other sheet

    Quote Originally Posted by Aussiebear View Post
    Try the following
    Sub CopyData() 
         With Sheets("Sheet1")
    Range("A1").Copy      
    With Sheets( Sheet2")      
    ActiveSheet.Paste 
    End Sub
    I want to copy A1's data in Sheet1 of Book1 worksheet (macro not found there) and paste into Sheet1 of Personal worksheet (macro are found here)
    Last edited by SamT; 08-24-2013 at 07:07 AM.

  4. #4
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Personal.xlsm should not be used for data storage. It should only be used to store Macros that you want available in any and all other workbooks that you open.

    Tell us about your existing scenario and what you ultimately want to accomplish. We can help you decide how to do that in the most usable way.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  5. #5
    VBAX Contributor
    Joined
    Apr 2012
    Posts
    107
    Location
    problem solved

Posting Permissions

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