Since none of the stock macros nor those posted on the forum manipulate Question Banks or Events/Actions, the macro below should help you get started with these. Unlike the others, this is not a macro that you could use to perform some actual, useful task. It should serve as the starting point for your own macro experiments. Its code is documented with inline comments for clarity, and demonstrates how to iterate all slides in a project - the main timeline slides, master slides, as well as those inside Question Banks. For those, it will also attempt to locate the slides' events in order to add an action. The code includes 2 commented lines that add a "Goto Slide" action to the slides' "OnCorrect" event. Those lines are commented out in order to avoid unintentionally modifying your project - make sure you uncomment them to actually add the action.

To start experimenting, just copy the code below into a plain-text file named QuesionBank.groovy, and save it into your Library/Macros folder. Then load the macro using Edit menu - Load Macro command inside ViewletBuilder8 Enterprise. You can use the Edit menu - Run Macro command to execute a macro, or simply press CTRL+K.

A word of warning: macro code is not constrained by the "foolproofness" of the GUI and can break your project if used incorrectly. There are no checks made for the validity of IDs that you use, or actions that you add to a specific element. Please keep this in mind and keep a backup copy of your projects before running any macros. Macros are written in the Groovy language. While it is not necessary to have previous Groovy experience (its syntax is similar to Java, C++ or JavaScript) it certainly helps if you have programming skills before attempting to write your own macros.