![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Stockton, California
Posts: 281
|
Hi everyone,
I have some code that will go into every excel file (all formatted the same) and extract data i need to the current worksheet. But i would like to be able to do more, and make it easier. Would it be possible to generate a form which looked for all the directories in a given directory, then ask the user to check which directories they wanted to search in. then i could loop my code for all the checked directories? My directories are as follows: into each year, "YEAR 2001", "YEAR 2002" etc Then each year has every month "01-01","02-01" etc... Then there are even more directories inside of these. but i just want the check boxes to generate for each month so we can do a report say for the last 3 months or whatever we choose. thanks for any help |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
I'm heading home soon, but research userform, chdir, folders, SubFolders, FileName, open. This should get you started in the right path.
__________________
Kind regards, Al Chara |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Two questions.
Are you using Office 2000? Is everybody who uses this workbook running the same version as you? |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Stockton, California
Posts: 281
|
Yes TS Tom, as of right now, myself and everyone else is using office2k, but in the future, that may change to office 2002, I'm not sure.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|