terrypin Posted September 13, 2014 Report Share Posted September 13, 2014 Head scratching over this one for a while. I have a short and simple macro, Macro1 that prepares to save a file. It sets up the file save dialog, enters the filename and finishes with this Text Box Display It runs perfectly as a standalone macro. But when I include it, even as the only line, in another macro, Macro2: Macro Run: Macro1 it fails, giving an obscure error: To my mind, both of these should give identical results, yes? The Text Box Message has no influence on the issue. I removed it later as it's obvious that the save has to be completed manually, and it made no difference to the problem The correct file saved using just Macro1 is C:\Docs\Map Overlays\My Overlays\UK Walks MMO\20140911Holtye-Brian-Orig.mmo --Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Cory Posted September 13, 2014 Report Share Posted September 13, 2014 Interesting. Are you using controls to set the file name in the save dialog file name field? Quote Link to comment Share on other sites More sharing options...
terrypin Posted September 14, 2014 Author Report Share Posted September 14, 2014 Hi Cory, No controls used. It's baffling that Macro1 runs solidly every time. Yet produces that weird error when it's run from a parent macro, despite whatever delays i introduce! No big deal, I'll just have to stick to using two individual macros instead of combining them as I'd prefer. --Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Cory Posted September 14, 2014 Report Share Posted September 14, 2014 Can you create a sample to reproduce the problem using Notepad or something? Quote Link to comment Share on other sites More sharing options...
terrypin Posted September 14, 2014 Author Report Share Posted September 14, 2014 I've found it! As you see from this illustration, it was ultimately down to me: I'd earlier re-written an improved version of Macro1 - which in reality is called Save overlay as MMO (c+a+M) - but I hadn't given the two different names. So when I wrote Macro2 - actually called Save overlay as both MMO and GPX (c+a+2) - and selected from the list, I'd chosen the wrong one! Although it's no excuse for my carelessness, it would be a nice touch if the browse window distinguished disabled macros in some way. Don't know how technically challenging it might be but I'll submit a feature request. So pleased to sort it - that's had me vexed for hours. --Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Cory Posted September 14, 2014 Report Share Posted September 14, 2014 Glad you found it. Those can be maddening. Quote Link to comment Share on other sites More sharing options...
acantor Posted September 15, 2014 Report Share Posted September 15, 2014 Terry, I am curious to know how you get the "Select a Macro" window. I don't think I have ever seen it, despite my having been using MEP since its inception. Quote Link to comment Share on other sites More sharing options...
terrypin Posted September 15, 2014 Author Report Share Posted September 15, 2014 Hi Alan, You've got me puzzled now! How have you selected your choice for the Macro Run command? --Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
acantor Posted September 16, 2014 Report Share Posted September 16, 2014 Ahhh... of course! Macro Run! 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.