in VBA how can if a document object is attached to a document?
Posted on 2004-04-08
hey folks, lets say i have this code in word VBA:
Dim d As Document
Dim n As String
On Error Resume Next
Set d = Documents.Open(FileName:=fName)
'I want something next that will check if d is attached to a document (or if there was an error). I tried isEmpty ans isNull, but they don't seem to work. I want a isExists(d) command that would tell me yes(or no) that document object is attached to something. Does anyone know a a nice cool command that works like that?