+ Reply to Thread
Results 1 to 3 of 3

Copy multiple worksheets from 2003 workbook to one worksheet in 2010 workbook

  1. #1
    Registered User
    Join Date
    02-04-2012
    Location
    Inglewood, CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Copy multiple worksheets from 2003 workbook to one worksheet in 2010 workbook

    I need the ability to copy multiple worksheets from one workbook created via Crystal Reports export (ms excel 2003 format) and merge into one worksheet in ms excel 2010. Currently, I am able to use the openfile dialog to open the 2003 workbook, create a new 2010 workbook, and copy the first 2003 worksheet into sheet 1 of the 2010 workbook.

    However, when I copy the second 2003 worksheet, I get the famous "The information cannot be copied because the copy area and the paste area are not the same size and shape.

    I am using VBA to perform this activity, but I am not able to get past this error. We can have 2003 workbooks that can have anywhere from 3 to 35 worksheets. The first worksheet will contain the header row and then the maximum number of rows allowed on the worksheet. The other worksheets will contain the maximum number of rows on the worksheet with the last worksheet containing less than the maximum. The number of columns can be varied, but I do not have to worry about copying hiddens rows/columns or copying formulas. It is just a straight copy and paste. However, the sheets in the 2003 workbook must be copied in order from sheet 1, sheet 2, sheet 3, etc as this data will usually be in some sort of sorted order.

    Please Login or Register  to view this content.
    So my question is, what am I doing wrong or what am I missing???

    Thanks!!!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: Copy multiple worksheets from 2003 workbook to one worksheet in 2010 workbook

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook. Don't upload a picture when you have a workbook question. None of us is inclined to recreate your data. Upload the workbook and manually add an 'after' situation so that we can see what you expect. In addition clearly explain how you get the results..
    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'.
    To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'.
    Clicking this button will open a new window for uploading attachments.

    You can upload an attachment either from your computer or from another URL by using the appropriate box on this page.
    Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file.

    To upload a file from another URL, enter the full URL for the file in the second box on this page.
    Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-04-2012
    Location
    Inglewood, CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Re: Copy multiple worksheets from 2003 workbook to one worksheet in 2010 workbook

    I have attached a sample file as per your request.

    The problem is that I need to be able to open an Excel 97 - 2003 workbook, copy all the rows in each worksheet (which will contain the maximum number of rows allowed in Excel 97 - 2003 worksheets) to an Excel 2010 worksheet. For example, a workbook may contain 3 worksheets. Sheet1 & Sheet2 will contain 65,536 rows each and Sheet3 will contain 15,000 rows. All worksheets in the Excel 97 - 2003 will have the same format. There are no hidden rows or columns. There are no formulas. The Excel 97 - 2003 worksheet will only contain data. The data can be text, number, or date.

    The end result is that I have a new Excel 2010 workbook with one worksheet which contains 146,072 rows.

    As the Excel 97 - 2003 workbooks are created from Crystal Reports 11 export, I will have different workbooks which will contain different number of worksheets & rows/columns. But as the workbook is created from a query, the formats of each worksheet in that particular workbook will always be the same. However, the end result will always be the same. I need to copy/merge all the worksheets in an Excel 97 - 2003 workbook into only one worksheet in an Excel 2010 workbook.

    I was hoping that I could use the copy and paste method to perform this task, but it appears that perhaps the Excel 97 - 2003 workbook needs to be converted to Excel 2010 first.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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