Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check for file in folder then execute code

Status
Not open for further replies.

jeffwest1

MIS
Aug 29, 2007
50
NL
I am sure that it is listed here somewhere but I cannot find it.

I would like to have a program running in the background that will be checking the contents of a folder, once a file exists with a certain name, the following will happen.

A) Create text file with names and update dates of all files in folder (approx 200)
B) Run some excel VBA code to open,update and close a series of spreadsheets (already written code for this)
C) Create new text file with names and update dates of all files in folder (to look for non updated files)

What i could do with is a pointer to some code for VB that will help me do this.

I used VB sometime ago, so not a total novice, but am struggling with syntax and could really do with the help.

--------------------------------
Luke: But tell me why I can't...
Yoda: No, no, there is no why. Nothing more will I teach you today. Clear your mind of questions.
 
The following may be of interest;
thread222-1389957
thread222-719707
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top