7 Replies Latest reply: Aug 11, 2015 7:34 AM by Ruben Marin RSS

    Macro script: Count current selected values in field

    Taylor Mcgrath

      I'm currently using a macro with an if statement that goes like this:

       

      if ActiveDocument.Fields("%VIEW_NAME").GetSelectedValues.count > 0 then

      ActiveDocument.Fields("PB_User_Flag").Lock

        ActiveDocument.Fields("MASTER_ID").Lock

      end if

       

      Yet, when the macro is triggered, the above fields are not locking. Any insights??