A
aftamath
How do I use a FileSytemObject in VBA code to print a word document from excel.
When I declare myDocName as the filepath. Then tell it myDocName.Print, an
error pops up for Object Required.
Sorry, I didn't realize I said to print a word document in my initial
question. I meant that the code can call on any type of file and print it.
I figured that since VBA can search a computer's file system for a file and
write it to a text file, maybe it can print the file that it finds also. It
could be anything, a PDF, BMP, DOC, XLS, DRG, etc.
Thanks Dave, I didn't think it could be done with VBA.