4 Replies Latest reply on Apr 11, 2018 11:36 AM by Gordon Rigg

    Use relative file path in macro?

    Gordon Rigg

      My first macro 1st_macro.swp runs my second macro 2nd_macro.swp using this line of code:

      swApp.RunMacro "\\fullfilepath\2nd_macro2.swp", "2nd_macro1", "main"

       

      I was hoping missing the "\\fullfilepath\" out would still run 2nd macro provided it was in the same directory as the first macro.

      This didn't work.

      Is there a correct syntax to use a relative file path for this?

      or

      Do I have to somehow call up the file path of the first macro, and then use that path in this line?