I am looking for a simple piece of code that loops thru all files in a folder (so opening them and close when done).

Then after opening perform my main code.
When main code is done, close workbook and go to the next file in the folder.