K
KS
I have a VB6 program looping through DOC-files in a folder
making some statistics on the DOC-files in a Excel-sheet.
When the program is runing I can NOT use WORD for other
purposes because the DOC-files then open in this instans
of Word - sample snip:
Set WrdDoc = WrdApp.Documents.Open(App.Path & "\" & FileN)
', , , , , , , , , , , False)
..
..
.. gathering some statistics til an Excel-sheet
..
WrdDoc.Close False
Set WrdDoc = Nothing
IF I use the parameter Visible=False (commented out here!)
I can NOT use the "WrdDoc.Close False"
If I comments out the "WrdDoc.Close False" I get ALL tilde-
workfiles visible (and it's 10.000'd of files !)
How can I clean up nicely by closing each opened document
AND use Word for other purposes WITHOUT opening the
documents in this extra instance of Word ?
KS, Denmark
making some statistics on the DOC-files in a Excel-sheet.
When the program is runing I can NOT use WORD for other
purposes because the DOC-files then open in this instans
of Word - sample snip:
Set WrdDoc = WrdApp.Documents.Open(App.Path & "\" & FileN)
', , , , , , , , , , , False)
..
..
.. gathering some statistics til an Excel-sheet
..
WrdDoc.Close False
Set WrdDoc = Nothing
IF I use the parameter Visible=False (commented out here!)
I can NOT use the "WrdDoc.Close False"
If I comments out the "WrdDoc.Close False" I get ALL tilde-
workfiles visible (and it's 10.000'd of files !)
How can I clean up nicely by closing each opened document
AND use Word for other purposes WITHOUT opening the
documents in this extra instance of Word ?
KS, Denmark