title: Is it possible to run macro only when excel file is opened by Task Scheduler?
body: <p>I have scheduled a file to open, run macro and close after that. Everything works fine, except if I want to open the file manually, it closes on opening as it runs the macro.
  Is it possible to set macro to run only when file is opened automatically?</p>