• Combine Excel files without Excel Automation

    Author
    Topic
    #393267

    [indent]


    Excel Automation is not allowed on the server running the application.


    [/indent]
    You mean, you cannot run macros?

    How many Excel files are to be combined? If they are a few but containing a zillion worksheets each, try the following VBA-free solution:

    – Open all the files to be combined.
    – Create a new workbook.
    – Select any of the files you opened, and click on the first worksheet tab counting from left to right. The worksheet will become active.
    – From the set of arrows to the left of the worksheets tab, press the one right of all (this will scroll all the worksheet tabs to the last, counting from left to right).
    – Now hold Ctrl + Shift and click on the last worksheet tab. This way you’ve selected all the worksheets.
    – Right click on any worksheet tab. A context menu displays. Select “Move or Copy”, remember to check the “Create a copy” box, choose the workbook you’d created to this effect, select where the worksheets should be inserted. Done.
    – Repeat with every workbook.

    Hope it works…

    Viewing 1 reply thread
    Author
    Replies
    • #711746

      (Edited by sabu on 09-Sep-03 07:47. Further clarification of situation.)

      Has anybody run across any software (library or application) that can combine multiple excel files into one excel workbook without requiring Excel? I’d like each worksheet from the group of files to be a worksheet in the combined file. Excel Automation (or even running Excel) is not allowed on the server running the application.

      The worksheets have graphs on them. The data is being populated and changed via ADO.NET.

      Thanks,
      Bob

      • #712143

        You can access database-like XLS files using ADO, but if you are wanting to do something other than simply replicate data from one workbook to another, this probably won’t suit your needs.

      • #712144

        You can access database-like XLS files using ADO, but if you are wanting to do something other than simply replicate data from one workbook to another, this probably won’t suit your needs.

      • #712171

        When the files are created can you save them as CSV files? If so then it could be very easy to combine them on a server that isn’t running Excel. But of course all sheets would be combined into one big worksheet.

        StuartR

      • #712172

        When the files are created can you save them as CSV files? If so then it could be very easy to combine them on a server that isn’t running Excel. But of course all sheets would be combined into one big worksheet.

        StuartR

    • #711747

      (Edited by sabu on 09-Sep-03 07:47. Further clarification of situation.)

      Has anybody run across any software (library or application) that can combine multiple excel files into one excel workbook without requiring Excel? I’d like each worksheet from the group of files to be a worksheet in the combined file. Excel Automation (or even running Excel) is not allowed on the server running the application.

      The worksheets have graphs on them. The data is being populated and changed via ADO.NET.

      Thanks,
      Bob

    Viewing 1 reply thread
    Reply To: Combine Excel files without Excel Automation

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: