# System.util.execute for excel macro

**URL:** <https://forum.inductiveautomation.com/t/system-util-execute-for-excel-macro/36864>\
**Category:** Ignition\
**Created:** [July 20, 2020, 1:12pm UTC](https://forum.inductiveautomation.com/t/system-util-execute-for-excel-macro/36864 "2020-07-20T13:12:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![bpreston](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@bpreston](https://forum.inductiveautomation.com/u/bpreston)\
**Post date:** [July 20, 2020, 1:33pm UTC](https://forum.inductiveautomation.com/t/system-util-execute-for-excel-macro/36864/3 "2020-07-20T13:33:40Z")

</div>

When I copied what you had on here, it did something with the quotes around the time in your if statement and in your execute statement. I'm assuming something changed when you copied it over though. I'm not sure why it would run from your script console though. Backlashes are considered escapes in python. Have you tried doubling them up and seeing if you get a different result?

> [@System.util.execute() to pass parameters into excel file](http://forum.inductiveautomation.com/t/system-util-execute-to-pass-parameters-into-excel-file/34938/2):
>
> Backslashes are escapes in python quoted strings. Try doubling them up. Or just switch them to forward slashes.

```auto
from time import localtime, strftime
execTime = strftime("%H:%M", localtime())
if execTime == "10:25":
	system.util.execute(['C:\\Program Files\\Microsoft Office\\root\\Office16\\EXCEL.EXE', 'C:\\data\\some_macro.xlsm'])

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/system-util-execute-for-excel-macro/36864)._
