-1

I am trying to run a VBA macro called test in a PowerPoint called Presentation1 daily by using Windows Task Scheduler. I set up the action with the program/script being "C:\WINDOWS\system32\cmd.exe"

In the "Add Arguments" area I put: "C:\Program Files (x86)\Microsoft Office\root\Office16\POWERPNT.EXE" /M "C:\Users\Name\Documents\Presentation1.pptm" "test"

However, the only thing that shows is this:

enter image description here

Does anyone know how I can make this work?

TylerH
  • 20,799
  • 66
  • 75
  • 101
rox601
  • 1
  • 1
  • Check this - https://stackoverflow.com/questions/56600680/passing-action-parameter-to-schtasks-in-macro-vba/56601541#56601541 – Vityata Jul 05 '19 at 09:05

1 Answers1

0

If you turn the macro-enabled presentation into an add-in and run the VBA from an AutoOpen macro (also in the add-in), then all you have to worry about with task scheduler is starting PowerPoint: How can I get my code to run automatically when a presentation opens?

John Korchok
  • 4,723
  • 2
  • 11
  • 20