Forum Replies Created
nileshp September 25, 2012 at 5:56 pm
Reply To: Script Example: Inserting XML fragments with macrosSeptember 25, 2012 at 5:56 pmParticipants 0Replies 0Last Activity 10 years, 4 months ago
Is 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.