3 Replies Latest reply: Mar 17, 2015 8:28 AM by Agnivesh Kumar RSS

    Run a Macro every 5 seconds

      Hi All,


      I have a macro that I would like to run every 5 seconds. What is the best way of doing this?

      The macro basically selects every possible value for a given field. So if I have a button with the macro "Test" as an action, every time I click on it, the field "Field" will select a different value each time.

      But naturally I don't want to have to keep clicking on this every 5 seconds. How can I automate this process, i.e. have this macro run every 5 seconds in the background?



      Sub Test

      ActiveDocument.getField("Field").select ActiveDocument.Evaluate("minstring({1}if(Field>'$(=Field)',Field))")

      end Sub