How can you run an Excel macro through a schedule task

后端 未结 5 1578
醉酒成梦
醉酒成梦 2020-12-14 11:52

I need to run a macro in an Excel spreadsheet through a schedule task. I\'ve defined the job as below:

\"C:\\Program Files\\Microsoft Office\\Office10\\EXCEL.EXE\" \

5条回答
  •  失恋的感觉
    2020-12-14 12:31

    Write a short vbscript which launches Excel, loads your workbook and uses Application.Run to run the macro. Have your scheduled task run the vbscript.

    Eg: http://www.mrexcel.com/forum/showthread.php?t=302970

提交回复
热议问题