LoginSignup
3
6

More than 5 years have passed since last update.

エクセルのマクロをバッチから呼ぶ

Posted at

Dim excl
Set excl = CreateObject("Excel.Application")
excl.Visible = False
excl.Workbooks.Open "path of excel file"
excl.Run "macroToExecute"
excl.Quit

をhoge.vbsとかで保存して、fuga.batに

cscript hoge.vbs

とかって書く。

3
6
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
3
6