Jump to content
Macro Express Forums

Keep Variable


Amerifax-Bob

Recommended Posts

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

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...