I figured it out, I just needed to convert the wordDoc type to Microsoft.Office.Interop.Word.DocumentClass and the method worked. Refer to this post.
If you want Word not to open change the assignment of wordApp.Visible = False
I figured it out, I just needed to convert the wordDoc type to Microsoft.Office.Interop.Word.DocumentClass and the method worked. Refer to this post.
If you want Word not to open change the assignment of wordApp.Visible = False