# Executing Excel Macro after Toad builds spreadsheet

**URL:** <https://forums.toadworld.com/t/executing-excel-macro-after-toad-builds-spreadsheet/39938>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [September 1, 2017, 1:37pm UTC](https://forums.toadworld.com/t/executing-excel-macro-after-toad-builds-spreadsheet/39938 "2017-09-01T13:37:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgivens](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@sgivens](https://forums.toadworld.com/u/sgivens)\
**Post date:** [September 1, 2017, 1:37pm UTC](https://forums.toadworld.com/t/executing-excel-macro-after-toad-builds-spreadsheet/39938/1 "2017-09-01T13:37:20Z")

</div>

Hi. I’m using an app in Toad for Oracle 12.11 to build queries and then export results into a spreadsheet. I have developed an Excel macro that does a few things like formatting and calculating some additional data on the report. Is there a way I can have Toad call the Excel macro once the spreadsheet is built before it is emailed as part of the Toad app?

Thanks,

Steve

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [September 1, 2017, 2:10pm UTC](https://forums.toadworld.com/t/executing-excel-macro-after-toad-builds-spreadsheet/39938/2 "2017-09-01T14:10:42Z")

</div>

There’s no way to do it directly from Toad, but if there is a way to call a macro from command line, you could add an action in Toad to do that. We’ve got a “Shell Execute” action on the “Utilities” tab.
