How to export multiple tracks with macros

I created a macro that extracts a 30-second portion of several tracks from the project. Once the edit is complete, I’d like to save them as individual tracks in MP3 format (just like the export function on my PC). Unfortunately, the “Export as MP3” function produces a single track as the sum of all the tracks in the project. How can I save them individually?

Are you asking about exporting with a macro, or exporting with the user interface? If you are exporting with the user interface, muted tracks don’t get exported.

I mean exporting tracks with the macro. As I wrote in the post, all the tracks in the project were edited using a macro (shortening to 30 seconds, fading in and out). Once the editing is complete, I need to add a function to the same macro that allows me to save all the tracks individually (the equivalent of the function activated manually with “Ctrl+Shift+E”).