troubleshooting Question

MS Word as a reporting tool. Winword.exe doesn't close

Avatar of jpp1jpp1
jpp1jpp1 asked on
Visual Basic Classic
6 Comments1 Solution447 ViewsLast Modified:
Title is pretty self-explanatory.

I'm using version 11 in my project's reference section (Vbasic 6.0) although, with the purpose to get an all-version compatible program, I'm actually using late-binding:

    Dim WordApp As Object
    Dim WordDoc As Object

    Set WordApp = CreateObject("Word.Application")
    Set WordDoc = CreateObject("Word.Document")

When the word template is filled I do the following for closing:

    Set WordDoc = Nothing
    Set WordApp = Nothing

But the winword.exe process isn't killed. In fact after generating several reports the same number of instances remain open, consuming more and more resources (loke 10M per instance)

Am I missing someting?

Ty in advance.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros