If you have a (parent) Word window without any Documents in it then there
are no other documents which can be closed. Maybe you need to check first
...
If Documents.Count > 0 then Application.Quit

Signature
Enjoy,
Tony Jollans
Microsoft Word MVP
> That does the job but it also closes every word document window which
> could be disasterous. I just want to close the Active Window.
[quoted text clipped - 26 lines]
>>
>> - Show quoted text -
Tony Jollans - 17 Apr 2007 13:34 GMT
Oops! That should of course be ...
If Documents.Count = 0 then Application.Quit

Signature
Enjoy,
Tony Jollans
Microsoft Word MVP
> If you have a (parent) Word window without any Documents in it then there
> are no other documents which can be closed. Maybe you need to check first
[quoted text clipped - 32 lines]
>>>
>>> - Show quoted text -
sales@elchoartcraft.com - 19 Apr 2007 08:00 GMT
Thankyou. that's perfect.
On Apr 17, 9:34 pm, "Tony Jollans" <My forename at my surname dot com>
wrote:
> Oops! That should of course be ...
>
[quoted text clipped - 52 lines]
>
> - Show quoted text -