Hi all,

Could someone please help me with following problem.

I'm writing a vb code that need to see the properties of opened office documents using following method:

Dim oDOC as Word.Application

Set oDOC = New Word.Application

If oDOC.Documents(FileName).Saved = False Then
MsgBox ("Document has not been save")
End if

It seems like code does not recognize opened document. However, if do the same thing with powerpoint object, everything works fine.

Can someone please tell me what can be done.

Thanks,
Charles