Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Opening Workbooks

I am coding using VBA and ADO. Trying to make an automated system that goes
to a folder and opens a file, loads the data needed, and closes the file, one
after the other for all the files in the folder. I want to do this without
referencing the names of any of the workbooks because the names change daily.
Is there any way to do this?? Thank you.

Brent
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Opening Workbooks

Hi Brent

See this page
http://www.rondebruin.nl/copy3.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Brent" wrote in message ...
I am coding using VBA and ADO. Trying to make an automated system that goes
to a folder and opens a file, loads the data needed, and closes the file, one
after the other for all the files in the folder. I want to do this without
referencing the names of any of the workbooks because the names change daily.
Is there any way to do this?? Thank you.

Brent

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Opening Workbooks

It looks like I would have to enter the names manually into a sheet in the
workbook. I do not want to worry about the names at all, but I still want
the program to go through each file. Thank you.



"Ron de Bruin" wrote:

Hi Brent

See this page
http://www.rondebruin.nl/copy3.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Brent" wrote in message ...
I am coding using VBA and ADO. Trying to make an automated system that goes
to a folder and opens a file, loads the data needed, and closes the file, one
after the other for all the files in the folder. I want to do this without
referencing the names of any of the workbooks because the names change daily.
Is there any way to do this?? Thank you.

Brent


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Opening Workbooks

If all workbooks are in a folder you can run the code for all workbooks without knowing the names
There is also a macro to select the files

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Brent" wrote in message ...
It looks like I would have to enter the names manually into a sheet in the
workbook. I do not want to worry about the names at all, but I still want
the program to go through each file. Thank you.



"Ron de Bruin" wrote:

Hi Brent

See this page
http://www.rondebruin.nl/copy3.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Brent" wrote in message ...
I am coding using VBA and ADO. Trying to make an automated system that goes
to a folder and opens a file, loads the data needed, and closes the file, one
after the other for all the files in the folder. I want to do this without
referencing the names of any of the workbooks because the names change daily.
Is there any way to do this?? Thank you.

Brent


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Opening Workbooks

Thank you. That helped.

Brent


"Ron de Bruin" wrote:

If all workbooks are in a folder you can run the code for all workbooks without knowing the names
There is also a macro to select the files

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Brent" wrote in message ...
It looks like I would have to enter the names manually into a sheet in the
workbook. I do not want to worry about the names at all, but I still want
the program to go through each file. Thank you.



"Ron de Bruin" wrote:

Hi Brent

See this page
http://www.rondebruin.nl/copy3.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Brent" wrote in message ...
I am coding using VBA and ADO. Trying to make an automated system that goes
to a folder and opens a file, loads the data needed, and closes the file, one
after the other for all the files in the folder. I want to do this without
referencing the names of any of the workbooks because the names change daily.
Is there any way to do this?? Thank you.

Brent


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 new workbooks Falcon248 Excel Discussion (Misc queries) 0 January 22nd 10 07:09 PM
Opening Workbooks in a Folder Bill[_30_] Excel Programming 5 June 29th 06 09:16 PM
Opening workbooks calimari Excel Discussion (Misc queries) 2 January 24th 06 12:34 AM
multiple workbooks opening jtr Excel Programming 3 June 3rd 04 10:08 PM
Questions upon opening workbooks E. Edgington Excel Programming 2 June 2nd 04 03:04 PM


All times are GMT +1. The time now is 11:17 AM.

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

About Us

"It's about Microsoft Excel"