+ Reply to Thread
Results 1 to 3 of 3

Ttrying to copy large data in sheet1 but only 65536 records get copied

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Ttrying to copy large data in sheet1 but only 65536 records get copied

    Hi guys

    I am writing the following code to copy data from Access database to Excel. the total number of records that get copied are 90000 so .It gives me error message .

    but is there anyway to get it done. I mean writing the piece of code to check if sheet1 is full then move to sheet 2 and then sheet3 and so on until all data gets copied.

    Please Login or Register  to view this content.
    Last edited by aman1234; 10-21-2014 at 09:50 AM.

  2. #2
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: Subscript out of range error as trying to copy large data

    sorry would like to correct something as i was using wrong worksheet name thats why it was giving me subscript out of range but as now I have corrected it so it doesn't give me any error message but in sheet "FSL" , it only copies 65536 records and not 90000 records. so would like vba code that will copy rest of the data in sheet2 .

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

    Re: Subscript out of range error as trying to copy large data

    This excerpt from Chip Pearson's website may help.

    Please Login or Register  to view this content.
    Note: I had to take out the comments because the procedure was too large to post so you may want to visit his website to get the entire code with comments.

+ 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. [SOLVED] insert copied data from sheet1 to sheet2
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2014, 10:21 AM
  2. [SOLVED] Run-time error '9': subscript out of range - error occurs on multiple computers except one
    By BrettE in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-06-2014, 11:19 PM
  3. facing error - subscript out of range - In allocating data in sheet name wise
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2013, 05:30 AM
  4. Defining Array - Runtime error 9, Subscript out of range error
    By MaartenW in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-03-2012, 07:32 AM
  5. dde data copied from sheet1 to sheet2
    By chuckb74 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-02-2009, 03:53 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