+ Reply to Thread
Results 1 to 3 of 3

Opening multiple workbooks

Hybrid View

Guest Opening multiple workbooks 05-31-2005, 08:05 PM
Guest Re: Opening multiple workbooks 06-01-2005, 03:05 AM
Guest Re: Opening multiple workbooks 06-01-2005, 01:05 PM
  1. #1
    Darryl
    Guest

    Opening multiple workbooks

    I have an application that creates multiple Excel files (up to 20) with
    different names and different data. What I want to do is create a new file
    from these with a sheet for each one of these files and then delete them
    programatically after I have copied the sheet into the new file. Effectively
    ending up with one file when I am finished. Also is it possible to do this
    without automation.
    --
    DCD

  2. #2
    Nigel
    Guest

    Re: Opening multiple workbooks

    Bit of a conflict to ask for 'progamatically' make changes and then ask to
    do it without automation!

    If you have control of the program creating the 20 or so workbooks, why not
    consider wrting these as separate sheets into one workbook in the first
    instance - you end up with result in one step if this is not possible then
    you need some coding to merge the workbooks.

    The code you require otherwise depends on knowing where the filed are
    located or the names of the files created by the first step. If for example
    all the files (and only those files) are in one directory path you could
    just open each one in turn copy contents and paste into a new sheet on your
    summary workbook. If the files reside with other files then you need a
    means to identify the relevant files to act upon.

    Perhaps you might let us know how you would like to see this work.

    --
    Cheers
    Nigel



    "Darryl" <ddillman@tmsteam.com> wrote in message
    news:754D74EE-3CF6-48C4-9154-CF539A69BDAD@microsoft.com...
    > I have an application that creates multiple Excel files (up to 20) with
    > different names and different data. What I want to do is create a new file
    > from these with a sheet for each one of these files and then delete them
    > programatically after I have copied the sheet into the new file.

    Effectively
    > ending up with one file when I am finished. Also is it possible to do this
    > without automation.
    > --
    > DCD




  3. #3
    Darryl
    Guest

    Re: Opening multiple workbooks

    Nigel,

    Thanks for the response. I figured it out actually. The reason I couldn't do
    it on the first instance is that SQL Reporting Services is creating the files
    and from what I know about RS you can't combine sheets as it builds the files
    since that happens behind the scenes. What I wrote seems to work fine except
    for the orphan process that gets created. I am actually working on that now
    to see if I can eliminate that also. Thanks again.

    Darryl
    --
    DCD


    "Nigel" wrote:

    > Bit of a conflict to ask for 'progamatically' make changes and then ask to
    > do it without automation!
    >
    > If you have control of the program creating the 20 or so workbooks, why not
    > consider wrting these as separate sheets into one workbook in the first
    > instance - you end up with result in one step if this is not possible then
    > you need some coding to merge the workbooks.
    >
    > The code you require otherwise depends on knowing where the filed are
    > located or the names of the files created by the first step. If for example
    > all the files (and only those files) are in one directory path you could
    > just open each one in turn copy contents and paste into a new sheet on your
    > summary workbook. If the files reside with other files then you need a
    > means to identify the relevant files to act upon.
    >
    > Perhaps you might let us know how you would like to see this work.
    >
    > --
    > Cheers
    > Nigel
    >
    >
    >
    > "Darryl" <ddillman@tmsteam.com> wrote in message
    > news:754D74EE-3CF6-48C4-9154-CF539A69BDAD@microsoft.com...
    > > I have an application that creates multiple Excel files (up to 20) with
    > > different names and different data. What I want to do is create a new file
    > > from these with a sheet for each one of these files and then delete them
    > > programatically after I have copied the sheet into the new file.

    > Effectively
    > > ending up with one file when I am finished. Also is it possible to do this
    > > without automation.
    > > --
    > > DCD

    >
    >
    >


+ 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