View Single Post
  #1   Report Post  
Old September 29th 03, 07:57 AM posted to microsoft.public.excel.programming
Christof[_4_] Christof[_4_] is offline
external usenet poster
First recorded activity by ExcelBanter: Sep 2003
Posts: 2
Default Crash on every 2nd run


I get the following behaviour:

In a macro, I open a word doc, and close it again with
the following code:

'open word document
Dim infoDocument As Object
Set infoDocument = CreateObject("Word.Basic")
On Error Resume Next
Set infoDocument = Word.Documents.Open(fileAddress,0,
True, False)

If Err.Number = 0 Then

'do some stuff

'Close the document