Bug with Macro Local Variables when looped inside a Function

Noticed that strings were not being reset when looping a macro within a function. Solved it by using Assign with an empty value to reset the local variable each time the macro was called. Keeping the Loop outside of the Function seems to work fine.

Attached an example of how to reproduce this.


We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.



This solution helped me! Thank you.

Such a weird bug!
I had a problem using strings outside of functions with For Each Loop. Adding the macro to a function by itself worked.