Amerifax-Bob Posted October 5, 2007 Report Share Posted October 5, 2007 When I create a macro I have a variable that works . When I close the macro and open a ,creat,new macro and try to place it in a doc, the varbiale is not there. Not much of a supprise. But is there a way to make it globe or something? Also is there a way to clear out all the varables, not that I see any reason why I would. Bob Quote Link to comment Share on other sites More sharing options...
Cory Posted October 7, 2007 Report Share Posted October 7, 2007 Variables are all wiped out when a new macro begins so one doesn't' need to clear them usually but if you do you can use the Clear Variables command. I often cache variables to the registry as a means of bridging the between macros gap. It sounds intimidating but it's really very simple. To write one do something like this: <REGWSTR:1:HKEY_CURRENT_USER\Software\Insight Software Solutions\Macro Express\Miscellaneous\Remember Me> Then read it back at the beginning at the macro with: <REGRSTR:1:HKEY_CURRENT_USER\Software\Insight Software Solutions\Macro Express\Miscellaneous\Remember Me> Quote Link to comment Share on other sites More sharing options...
Amerifax-Bob Posted October 7, 2007 Author Report Share Posted October 7, 2007 Clear Variables It looks to easy. Thanks again Bob 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.