Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
emailing files from excel, the files will not go until I open up . | New Users to Excel | |||
how do I toggle between 2 open excel files and leave both open | Excel Discussion (Misc queries) | |||
How to change default Open/Files of Type to "Microsoft Excel Files | Excel Discussion (Misc queries) | |||
I cant open files unless I open the Excel program first | Excel Discussion (Misc queries) | |||
Can not open excel files without open application | Excel Discussion (Misc queries) |