ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Multiple workbook recap (https://www.excelbanter.com/excel-programming/287347-multiple-workbook-recap.html)

Rick[_19_]

Multiple workbook recap
 
Anyone have any thoughts on how I go about this?

I need to build a recap workbook with data from several
other workbooks. The user would need to have a window to
choose the multiple workbooks from different directories
to recap (does excel have a file window other than
getopenfilename and saveasfilename?).

The workbooks would not have a constant number of rows.
In other words I would need to get the number of rows and
columns from each workbook prior to building the recap
workbook. Can I do this without opening each of the data
workbooks (each workbook is over 5 meg without data)?



Dave Peterson[_3_]

Multiple workbook recap
 
Application.FileDialog was added in xl2002.

John Walkenbach has a Browse for Folder at:
http://j-walk.com/ss/excel/tips/tip29.htm

Or you could use:
Application.GetSaveAsFilename
and ignore the filename.

And I would open each workbook.

Maybe you could do something with ADO, but I've never used it.

Ole P. Erlandsen has lots of info at:
http://www.erlandsendata.no/english/vba/adodao/

It might help.

Rick wrote:

Anyone have any thoughts on how I go about this?

I need to build a recap workbook with data from several
other workbooks. The user would need to have a window to
choose the multiple workbooks from different directories
to recap (does excel have a file window other than
getopenfilename and saveasfilename?).

The workbooks would not have a constant number of rows.
In other words I would need to get the number of rows and
columns from each workbook prior to building the recap
workbook. Can I do this without opening each of the data
workbooks (each workbook is over 5 meg without data)?


--

Dave Peterson


RB[_4_]

Multiple workbook recap
 
Thanks for responding. I will look into those sites.

-----Original Message-----
Application.FileDialog was added in xl2002.

John Walkenbach has a Browse for Folder at:
http://j-walk.com/ss/excel/tips/tip29.htm

Or you could use:
Application.GetSaveAsFilename
and ignore the filename.

And I would open each workbook.

Maybe you could do something with ADO, but I've never

used it.

Ole P. Erlandsen has lots of info at:
http://www.erlandsendata.no/english/vba/adodao/

It might help.

Rick wrote:

Anyone have any thoughts on how I go about this?

I need to build a recap workbook with data from several
other workbooks. The user would need to have a window

to
choose the multiple workbooks from different directories
to recap (does excel have a file window other than
getopenfilename and saveasfilename?).

The workbooks would not have a constant number of rows.
In other words I would need to get the number of rows

and
columns from each workbook prior to building the recap
workbook. Can I do this without opening each of the data
workbooks (each workbook is over 5 meg without data)?


--

Dave Peterson

.



All times are GMT +1. The time now is 07:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com