Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default 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" wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening Multiple Workbooks SJT Excel Discussion (Misc queries) 1 June 6th 06 06:32 PM
Opening Multiple Workbooks MikeE Excel Programming 9 June 21st 05 08:21 PM
multiple workbooks opening jtr Excel Programming 3 June 3rd 04 10:08 PM
Opening multiple workbooks ianripping[_8_] Excel Programming 2 January 21st 04 05:50 PM
Opening Multiple Workbooks MISMitch Excel Programming 1 August 25th 03 05:29 PM


All times are GMT +1. The time now is 06:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"