Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default repeating code on files in multiple subfolders

I would like to run program on every file in a folder. I have code that
accomplishies this if the folder contains the files directly. However, I
need to do this on files that are in subfolders. The filesin sub folder A
are named the same as those in B, C, etc. So I can not simply copy them all
to the main folder.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default repeating code on files in multiple subfolders

Try FSO
http://www.rondebruin.nl/fso.htm

This example copy a range but you can adapt it to run your code instead of the copy/paste action


--

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


"ED007" wrote in message ...
I would like to run program on every file in a folder. I have code that
accomplishies this if the folder contains the files directly. However, I
need to do this on files that are in subfolders. The filesin sub folder A
are named the same as those in B, C, etc. So I can not simply copy them all
to the main folder.

Any ideas?

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 files in folders and subfolders bestie22 Excel Discussion (Misc queries) 1 September 19th 06 05:23 PM
Open all files in subfolders linglc Excel Programming 4 August 19th 06 10:33 AM
replace text in files within subfolders pieros Excel Programming 0 November 1st 05 01:19 PM
copy subfolders, replace text in files and save files in copied subfolders pieros Excel Programming 0 November 1st 05 12:08 PM
Modify - look at files within subfolders Steph[_3_] Excel Programming 1 October 8th 04 06:51 PM


All times are GMT +1. The time now is 04:11 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"