Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Excel VBA Loop through a folder and get files

$
0
0

Hi

I have a folder that will contain a variable number of files 9all in the same format).

I am trying to write some VBA code to access each file, open it, process it , close it ; then for on to next file and do the same. 

I am guessing there must be some code like:

For each workbook in folder

  open...

  process..

  close...

next workbook  

but I  am struggling trying to fined the correct syntax.

Can anyone help please?

many thanks

Peter


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>