How to connect Visual Basic to MS Word through API?
Printable View
How to connect Visual Basic to MS Word through API?
You'd probably be better off not using APIs for this. Just set a reference to the MS Word object library and do this:
That's easier...VB Code:
Dim objWord as Word.Application Set objWord = New Word.Application
yes, you will find it much easier with just the reference and not the api