Lucas,
Thanks for your time. I substituted
C:\Documents and Settings\Administrator\My Documents\Excel\Purchase Requisitions"
for
C:\temp\
but the worksheets did not print. I know I'm doing something wrong as I'm a complete dummy when it comes to code. What am I going wrong? My code looks like
Sub PrintAllWorksheetsOnWorkbooksInFolder()
Dim vFolder As String, vFile As String, WB As Workbook, WS As Worksheet
vFolder = "C:\Documents and Settings\Administrator\My Documents\Excel\Purchase Requisitions"
'vFolder = ThisWorkbook.Path & "\"
vFile = Dir(vFolder)
Application.ScreenUpdating = False
Do Until vFile = ""
If LCase(Right(vFile, 3)) = "xls" And vFile <> ThisWorkbook.Name Then
Set WB = Workbooks.Open(vFolder & vFile)
For Each WS In WB.Sheets
WS.PrintOut
Next WS
WB.Close False
End If
vFile = Dir()
Loop
Application.ScreenUpdating = True
End Sub