P
Peter McWha
Why does Microsoft Word take an unacceptably long length
of time to close after running the following code snippet
from Microsoft Word (as a Microsoft Word macro)?
Is there a more efficient way to access the documents which
.. does not expose (display) the document
.. avoids the Word closing issue
I've tried a number of workarounds unsuccessfully, but I
welcome any suggestions.
Please advise.
Sub MAIN()
Dim Document as Document
Dim temp00 As Long
Dim thedocs(145) As String
thedocs(0) = "c:\thedoc000.doc"
' Initialization of thedocs(1-144) removed for brevity
thedocs(145) = "c:\thedoc145.doc"
For temp00 = 0 to UBound(thedocs)
Set Document = GetObject(thedocs(temp00))
Set Document = Nothing
Next temp00
End Sub
of time to close after running the following code snippet
from Microsoft Word (as a Microsoft Word macro)?
Is there a more efficient way to access the documents which
.. does not expose (display) the document
.. avoids the Word closing issue
I've tried a number of workarounds unsuccessfully, but I
welcome any suggestions.
Please advise.
Sub MAIN()
Dim Document as Document
Dim temp00 As Long
Dim thedocs(145) As String
thedocs(0) = "c:\thedoc000.doc"
' Initialization of thedocs(1-144) removed for brevity
thedocs(145) = "c:\thedoc145.doc"
For temp00 = 0 to UBound(thedocs)
Set Document = GetObject(thedocs(temp00))
Set Document = Nothing
Next temp00
End Sub