Hi
I have the following code:
This currently works fine at printing the specified document out, and works well as the default printer is the only printer.
I would like to update this to work with a list of documents starting in cell A1. The list will go down the cells until the list of documents will end, this could be added to or documents removed.
The list of documents is the full path, which is a network location, as per the example above.
Is it possible to update the code to go through the list of documents, and print them all in the specified order?
Is it also possible to have a cell where the number can be changed for the number of copies of the documents? Such the number 3 in cell B2 would repeat the process 3 times?
I have the following code:
VBA Code:
Function FnPrint()
Dim objWord
Dim objDoc
Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents.Open("\\DC0\Bakery2\TECHSPEC\Technical\Manuals\29. Training\Training\Training Documents\Training Instructions\TI-53 - Pest Awareness.docx")
objWord.Visible = True
objDoc.PrintOut
objWord.Quit
End Function
I would like to update this to work with a list of documents starting in cell A1. The list will go down the cells until the list of documents will end, this could be added to or documents removed.
The list of documents is the full path, which is a network location, as per the example above.
Is it possible to update the code to go through the list of documents, and print them all in the specified order?
Is it also possible to have a cell where the number can be changed for the number of copies of the documents? Such the number 3 in cell B2 would repeat the process 3 times?