# Block "Execute Macro"

**URL:** <https://forum.electroneek.com/t/block-execute-macro/3440>\
**Category:** Studio Pro\
**Tags:** macro, excel\
**Created:** [August 11, 2023, 2:45pm UTC](https://forum.electroneek.com/t/block-execute-macro/3440 "2023-08-11T14:45:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tatianacirineo](https://forum.electroneek.com/user_avatar/forum.electroneek.com/tatianacirineo/32/1492_2.png) [@tatianacirineo](https://forum.electroneek.com/u/tatianacirineo)\
**Post date:** [August 11, 2023, 2:45pm UTC](https://forum.electroneek.com/t/block-execute-macro/3440/1 "2023-08-11T14:45:01Z")

</div>

Hello, I need help running a macro in Electroneek Studio Pro. I parameterized my flow according to the documentation and it still doesn’t run, can anyone help. I am attaching the images.

This VBA code performs row deletion in Excel worksheets.  
It goes through all tabs in the worksheet, starts deleting from line 10000 and goes to line 2, with a step of -1, that is, going from back to front.

 ![Print](https://forum.electroneek.com/uploads/default/original/2X/4/4fc66939f097917daa5e44cf9a695ac544ad547c.png)

---

<div class="post-metadata">

**Author:** ![Kudlappa\_Gouder](https://forum.electroneek.com/user_avatar/forum.electroneek.com/kudlappa_gouder/32/371_2.png) [@Kudlappa\_Gouder](https://forum.electroneek.com/u/Kudlappa_Gouder)\
**Post date:** [August 16, 2023, 5:28pm UTC](https://forum.electroneek.com/t/block-execute-macro/3440/2 "2023-08-16T17:28:38Z")

</div>

@tatianacirineo Is this VBS code working as expected outside studio? If yes, can you share sample excel you are trying?

I also suggest you to go through below article if you haven’t yet and follow the steps mentioned here.

> **[MS Excel](https://docs.electroneek.com/docs/ms-excel#execute-macro)**
>
> Activities Read Excel FileWrite Excel FileAppend row to Excel fileInsert/Delete RowsRead the contents of an Excel tableWrite specified values to a specified range in an Excel fileAdd a row to the end of an Excel sheetInsert or delete a row in an...

---

<div class="post-metadata">

**Author:** ![tatianacirineo](https://forum.electroneek.com/user_avatar/forum.electroneek.com/tatianacirineo/32/1492_2.png) [@tatianacirineo](https://forum.electroneek.com/u/tatianacirineo)\
**Post date:** [August 18, 2023, 2:50pm UTC](https://forum.electroneek.com/t/block-execute-macro/3440/3 "2023-08-18T14:50:51Z")

</div>

Olá eu consegui encontrar o problema junto a Electroneek.  
Obrigada.
