MarathonZephead Posted April 21, 2021 Report Share Posted April 21, 2021 Hi I apologise for being unable to locate what must be a basic question! I need to create "Macro 3" that is the product of Macro 2 added onto the end of Macro 1 i.e. when 1 has finished, 2 runs and I want to call that Macro 3. How can I do this please? Thank you! Quote Link to comment Share on other sites More sharing options...
Cory Posted April 21, 2021 Report Share Posted April 21, 2021 I think you want to use the "Macro Run" command to run the macro like a subroutine. You can also control which variables you pass to that macro in the "Make this variable available to macros called by this macro" option in the variable definition. Quote Link to comment Share on other sites More sharing options...
MarathonZephead Posted April 21, 2021 Author Report Share Posted April 21, 2021 Thanks Cory. I've only ever used the wizards before and although I've tried to follow your suggestion, it's not simple enough for my basic understanding. I've attached the 2 macros I need joining together - the first one is 'Activate...' I then need Macro Express to key ALT+C (which is the app's internal shortcut) (4x speed) and then run the 'Enclose...' macro.ActivateWinCatalogWindowFromTaskbar.mex Thanks again! EnclosingSpecifiedTextInQuotes.mex Quote Link to comment Share on other sites More sharing options...
acantor Posted April 21, 2021 Report Share Posted April 21, 2021 Here are some instructions that may help you do what you want to do. 1. Each Macro Express macro has a nickname, including those that you have created via the Wizard. It's possible to omit the nickname when creating a macro, and they will work. But to do what you want to do, ensure both macros have nicknames. Let's assume the nickname for the first is "AAAA" and for the second, "CCCC". 2. Create a new macro. 3. Choose a new activation. For example, if your first macro is activated by Alt + A and your second macro is activated by Alt + C, choose something else for the new macro that's going to combine AAAA and CCCC. Let's choose Alt + Z for now. (You might as well assign the new macro its own nickname. Maybe "ZZZZ??") 4. In the Script Editor, find the "Macro Run" command, and insert it. Specify the nickname as AAAA. 5. Repeat, but this time, the nickname will be CCCC. The script will look something like this: Macro Run: AAAA Macro Run: CCCC 6. Save the macro. Then test it using the activation you chose in Step 3. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.