+ Reply to Thread
Results 1 to 9 of 9

Copying data from one sheet to another

Hybrid View

  1. #1
    Registered User
    Join Date
    06-13-2014
    Posts
    10

    Copying data from one sheet to another

    Hi,

    I am currently working on copying ~30000 lines of data from columns A to X. I have found many examples for copying data for each row individually, but I want to copy all of this data to another worksheet all at once. If anyone can point me in the right direction or provide an example, I would appreciate it!

    Chadd

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copying data from one sheet to another

    Maybe:

    Sub arnoldchadd()
    Range("A1:X30000").Copy Sheets("another worksheet").Range("A1")
    End Sub

  3. #3
    Registered User
    Join Date
    06-13-2014
    Posts
    10

    Re: Copying data from one sheet to another

    Thank you for the quick reply!

    I attempted this and I received a Run-time error '1004':

    The operation cannot be completed for one of the following reasons

    * A selection including cells both inside a table and below it cannot be copied and inserted into that table. Select cells outside the table and try inserting the data again.
    *You have attempted to fill data in a way not supported by the table.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copying data from one sheet to another

    Can you attach a sample file with some dummy data that errors?

  5. #5
    Registered User
    Join Date
    06-13-2014
    Posts
    10

    Re: Copying data from one sheet to another

    I just attempted it again after deleting my data, and nothing happens. It executes, but no data is copied.

  6. #6
    Registered User
    Join Date
    06-13-2014
    Posts
    10

    Re: Copying data from one sheet to another

    CopyExample.xlsx
    Quote Originally Posted by JOHN H. DAVIS View Post
    Can you attach a sample file with some dummy data that errors?

    I've attached an example. Let me know if that provides enough information. Thank you again!

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copying data from one sheet to another

    This works on your sample. It Assumes you first two rows on Sheet1 are headers so it pastes to row3.

    Sub arnoldchadd()
    Sheets("Sheet2").Range("A1:X30000").Copy Sheets("Sheet1").Range("A3")
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 03-11-2013, 05:37 AM
  2. Replies: 0
    Last Post: 03-04-2013, 03:25 PM
  3. [SOLVED] Code from tigeravatar ,Copying data from one sheet and copying it
    By DanielRay in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 12-07-2012, 03:07 PM
  4. [SOLVED] Macro for copying data from one column in sheet 2 based on two criterias in sheet 1
    By baardings in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2012, 01:50 PM
  5. Copying a template sheet and putting those multiple sheets data into a summary sheet
    By John Wolfe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2011, 06:29 PM

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