以前、私はこれを使用しました:
Private Sub Document_Close()
Me.Saved = True
End Sub
Word文書を終了し、変更が加えられたときに保存プロンプトを無効にしますが、「コンボボックス(ActiveXコントロール)」を追加したので、Wordは再度保存を求めるプロンプトを表示します。これを回避する方法はありますか?
ドキュメントが閉じたときにコンボボックスを削除するコードを書いてみましたが、ボックスは使用後に自動的に削除され(私のコードではなく、単に削除されます)、ドキュメントを閉じるとボックスが存在せず、エラーが発生しますそこの。if present / error controlを実行することもできますが、根本的な問題を見つけるのではなく、だらしなくなっているように感じます...誰か助けてもらえますか?