次の方法で共有


StopAllMacros マクロ アクション

適用先: Access 2013、Office 2013

"StopAllMacros/全マクロの中止" アクションを使用すると、現在実行中のすべてのマクロを中止できます。

設定

"StopAllMacros/全マクロの中止" アクションには、引数はありません。

注釈

You typically use this action when an error condition makes it necessary to stop all macros. このアクションが定義されているマクロ内のアクション行に条件式を指定できます。 条件式の評価が True (–1) の場合、Microsoft Access はすべてのマクロを中止します。

For example, you might have a macro that displays a message box as one of a number of complex actions, including running other macros. If the user clicks Cancel in this message box, the StopAllMacros action can stop all the macros that are running.

If a macro has used the Echo or SetWarnings actions to turn echo or the display of system messages off, the StopAllMacros action automatically turns them back on.

このアクションは Visual Basic for Applications (VBA) モジュールでは使用できません。