Set objExcel = CreateObject("Excel.Application")
objExcel.DisplayAlerts = False
folderName = "C:\excelprint\"
Set FSOLibrary = CreateObject("Scripting.FileSystemObject")
Set fldr = FSOLibrary.GetFolder(folderName)
For Each f In fldr.Files
If Instr(f.Type,"Excel") Then
Set book = objExcel.Workbooks.Open(f.Path,0,1)
For Each sh In book.Worksheets
sh.PrintOut
Next
book.Close 0
End If
Next
objExcel.Quit
Set objExcel = Nothing