Home › Forums › XMetaL Tips and Tricks › Script Example: Inserting XML fragments with macros › Reply To: Script Example: Inserting XML fragments with macros
Reply to: Script Example: Inserting XML fragments with macros
September 25, 2012 at 5:56 pmIs there a way we can flush the variable values after executing a macro? I used the code in this macro and modified it to insert conrefs. There are 4 variations of the conrefs and whichever variation i use the first, the subsequent actions on the macros that are executed only insert what was inserted the first time. It looks like the macro values are getting cached from the Array index or the rng.PasteString() function is using the cached value.
Sometimes when I run the Refresh Macros macro, the values are correctly inserted.