Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Word vstoでApplication.Documents.Openメソッドを呼び出すと、ドキュメントが表示されているかどうかを設定するための参照があることがわかります。後で、ドキュメントが表示されているかどうかを確認するにはどうすればよいですか?
基本的に、if ステートメントでキャッチできるように可視性を false に設定することで、特定のドキュメントを開いたときに何かが起こらないようにしようとしています。
yourWordDocument.ActiveWindow.Visibleを試しましたか?