is there a way of finding out that there are more than one active window open,
what i need to do is close a word document that i am working on. which it does.
but if it is the only word document open then it will only close the document, but if there is another word document open it will close the actual window with the document. in other words it will exit out of word for that particular document.
but will leave the other documents open.
i have tried using the active.close option.
and have tried using application.quit method.
what i need to do is something like

if more than one word document open then
activewindow.close
else
application.quit