Dearest helpers,

I made a script in my normal.dotm file that should loop through all opened docs, executes some code on each, closes it and when the last one is closed it quits the grey window that's left over.

In code :
Do while Word.Application.Documents.Count <> 0
Documents(1).Activate Call mycode() Active Document.close()
Loop Application.quit It does do this, but it leaves documents open. I Guess I'm running multiple instances. How to actually loop all open documents?
Cor