arekowczarek Posted December 1, 2010 Report Share Posted December 1, 2010 I never really understood how variables are passed from one macro to another macro. I think it's high time I finally do. According to ME help file: Global Variable A Global Variable is accessible inside the macro where it is defined and in all other macros called by that macro via the Macro Run command. It is recommended that global variables be defined in the main macro. For example, suppose you have macros A, B and C and A is the main macro that calls macros B and C via the Macro Run command. After defining a variable named %Address% in macro A both macros B and C can use this variable. Changes made to the value of %Address% in macro B would be available in macros A and B. So here's what I did" 1. I created MACRO A 2. MACRO A sets variable %T% to "A" 3. MACRO A runs MACRO B 4. MACRO B claims that %T%="" (blank, undefined) Why wasn't the value passed to macro B from macro A? What am I missing here? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.