LoginSignup
2
3

More than 5 years have passed since last update.

Excelで他のWorkbookのマクロを実行する

Posted at
  • Application.Runでマクロを呼び出す。
  • ファイル名はシングルクォーテーションで括る。
  • ファイル名の後に「!」を付ける。
  • シート内のマクロの場合にはシート名を付けてドット
  • 最後にマクロ名を付ける。
example
Application.Run "'BOOK.xlsm'!Sheet1.Macro"
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3