Thank you for looking at this for me.


I tested it out and it actually does the job! there's just one problem.
At the end it seem to run into trouble when trying to close the word application.
An error occurs during the code listed below. I've also listed the message that pops up at the end every time i try to run the module.

Really appreciate the help.


Error message:


Run-time error'-2147417848(80010108'):


Automation error
The object invoked has disconnected from its clients.


If boolCloseAfterExec Then
            .Close
            .Parent.Quit
        End If


    End With
End Sub