Reputation: 3621
In MS Word I need to detect if there is any document open or none document is open. How to do it?
Upvotes: 0
Views: 40
Reputation: 3294
Some more information would be helpful but generally in VBA you can use: Application.Documents.Count
Although I suspect that this won't help you and perhaps what you are more interested in is application.ProtectedViewWindows.count
Upvotes: 1