Searched, didn't find this here, so...
I need Excel macro code that will print all files in a folder in a specified path (will be all pdf's, but if flexible to simply print them all no matter what extension they may be, that'd be great).
I don't need (don't want) to open the files, just simply dump every file in a folder on the network to the default printer as though they had individually been opened and printed one at a time.
Found and tried the following at MS but it fails (old unsupported version, it seems):
It fails on the 'application.printout' line - "Object doesn't support this property or method".Sub PrintDocsInFolder()
Dim sMyDir As String
Dim sDocName As String
' The path to obtain the files.
sMyDir = "C:\Sales Summary\Print\"
sDocName = Dir(sMyDir & "*.pdf")
While sDocName <> ""
' Print the file.
Application.PrintOut Filename:=sDocName
' Get next file name.
sDocName = Dir()
Wend
End Sub
Help?
Thanks!
Bookmarks