Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
xs xs is offline
external usenet poster
 
Posts: 3
Default How to open many excel files efficiently

Hi,

I tried opening 50+ files using the Open method at theWorkbook class at one
go. However due to the size of each file, which average about 2 MB, the
process takes too long to open. Is there a more efficient way to open these
files? Because each file takes about 5 mins to process and open. I have
tried opening a file, process it and closing it. But it doesn't make any
difference. Is there a way to open 1 excel process and use that process to
open the rest of the excel files? That should be the best way to open and
process them right?

Regards
xs


  #2   Report Post  
Posted to microsoft.public.excel.programming
xs xs is offline
external usenet poster
 
Posts: 3
Default How to open many excel files efficiently

Sorry I forgot to mention that I am using C# to open them.
Thanks.
"xs" wrote in message
...
Hi,

I tried opening 50+ files using the Open method at theWorkbook class at
one go. However due to the size of each file, which average about 2 MB,
the process takes too long to open. Is there a more efficient way to open
these files? Because each file takes about 5 mins to process and open. I
have tried opening a file, process it and closing it. But it doesn't make
any difference. Is there a way to open 1 excel process and use that
process to open the rest of the excel files? That should be the best way
to open and process them right?

Regards
xs



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default How to open many excel files efficiently

Hi xs,

It looks like ADO is going to be faster.

I found something that might help: http://snipurl.com/OpenExcelFiles Here it
shows ADO being used to access all the Excel files in a directory and
subdirectories.

Also see:

How To Use ADO with Excel Data from Visual Basic or VBA This article
discusses the use of ActiveX Data Objects (ADO) with Microsoft Excel
spreadsheets as a data source. The article also highlights syntax issues ...
http://support.microsoft.com/kb/257819

Hope this information helps,

Chris

"xs" wrote in message
...
Hi,

I tried opening 50+ files using the Open method at theWorkbook class at
one go. However due to the size of each file, which average about 2 MB,
the process takes too long to open. Is there a more efficient way to open
these files? Because each file takes about 5 mins to process and open. I
have tried opening a file, process it and closing it. But it doesn't make
any difference. Is there a way to open 1 excel process and use that
process to open the rest of the excel files? That should be the best way
to open and process them right?

Regards
xs



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default How to open many excel files efficiently

Hi xs,

Here is an article, with source code, in C#

http://www.c-sharpcorner.com/Code/20...essExcelDb.asp

Best regards,

Chris

"Chris" wrote in message
...
Hi xs,

It looks like ADO is going to be faster.

I found something that might help: http://snipurl.com/OpenExcelFiles Here
it shows ADO being used to access all the Excel files in a directory and
subdirectories.

Also see:

How To Use ADO with Excel Data from Visual Basic or VBA This article
discusses the use of ActiveX Data Objects (ADO) with Microsoft Excel
spreadsheets as a data source. The article also highlights syntax issues
...
http://support.microsoft.com/kb/257819

Hope this information helps,

Chris

"xs" wrote in message
...
Hi,

I tried opening 50+ files using the Open method at theWorkbook class at
one go. However due to the size of each file, which average about 2 MB,
the process takes too long to open. Is there a more efficient way to open
these files? Because each file takes about 5 mins to process and open. I
have tried opening a file, process it and closing it. But it doesn't make
any difference. Is there a way to open 1 excel process and use that
process to open the rest of the excel files? That should be the best way
to open and process them right?

Regards
xs





  #5   Report Post  
Posted to microsoft.public.excel.programming
xs xs is offline
external usenet poster
 
Posts: 3
Default How to open many excel files efficiently

Thanks...I will try it immediately

"Chris" wrote in message
...
Hi xs,

Here is an article, with source code, in C#

http://www.c-sharpcorner.com/Code/20...essExcelDb.asp

Best regards,

Chris

"Chris" wrote in message
...
Hi xs,

It looks like ADO is going to be faster.

I found something that might help: http://snipurl.com/OpenExcelFiles Here
it shows ADO being used to access all the Excel files in a directory and
subdirectories.

Also see:

How To Use ADO with Excel Data from Visual Basic or VBA This article
discusses the use of ActiveX Data Objects (ADO) with Microsoft Excel
spreadsheets as a data source. The article also highlights syntax issues
...
http://support.microsoft.com/kb/257819

Hope this information helps,

Chris

"xs" wrote in message
...
Hi,

I tried opening 50+ files using the Open method at theWorkbook class at
one go. However due to the size of each file, which average about 2 MB,
the process takes too long to open. Is there a more efficient way to
open these files? Because each file takes about 5 mins to process and
open. I have tried opening a file, process it and closing it. But it
doesn't make any difference. Is there a way to open 1 excel process and
use that process to open the rest of the excel files? That should be the
best way to open and process them right?

Regards
xs









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
emailing files from excel, the files will not go until I open up . joe New Users to Excel 2 September 18th 09 02:12 PM
how do I toggle between 2 open excel files and leave both open Big D in Brighton Excel Discussion (Misc queries) 1 November 6th 08 04:28 PM
How to change default Open/Files of Type to "Microsoft Excel Files Tammy Excel Discussion (Misc queries) 2 January 14th 08 11:06 PM
I cant open files unless I open the Excel program first ElaineAng Excel Discussion (Misc queries) 3 February 16th 06 02:54 PM
Can not open excel files without open application Taarfa Excel Discussion (Misc queries) 3 July 9th 05 11:56 PM


All times are GMT +1. The time now is 09:53 AM.

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"