Does anyone have sample code that could demonstrate how to hide/minimize Word while my vb program is running.
I need to call Word and have it print a doc while my vb program is still running and visual to the user.
Thanks
Printable View
Does anyone have sample code that could demonstrate how to hide/minimize Word while my vb program is running.
I need to call Word and have it print a doc while my vb program is still running and visual to the user.
Thanks
If I'm not mistaken, as long as you don't set the Word object to object.visible = true, Word won't appear. Just make sure to release the object correctly or everytime someone runs your application, you will leave an instance of Word running.
if that doesn't work then:
Dim wd as word.application
set wd = CreateObject("Word.Application") 'Or GetObject
wd.Visible = False
Thank You worked great!!!