Forum Replies Created

  • nileshp

    Reply To: Script Example: Inserting XML fragments with macros

    Participants 0
    Replies 0
    Last 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.