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.
ユーザーフォームがアクティブなときにワークブックが表示されないようにしたい。
これをWindowsマシンで機能させるには、userForm初期化メソッドでApplication.Visible = Falseを設定し、UserFormExitでTrueを設定します。
同じワークブックは、Macでは同じように動作しません。ブックは表示されたままです。
助言がありますか?
Application.Visible =FalseがMacOSXで機能しない理由はわかりませんが、次の方法で私のニーズに対応できました。
ユーザーフォームの初期化-ActiveWindow.WindowState=xlMinimized
ユーザーフォームの終了時-ActiveWindow.WindowState=xlMaximized