10 Replies Latest reply: Jul 8, 2015 11:11 AM by Karthik Prabhu RSS

    Macro to select values in listbox

      Hello,

       

      i'm trying to select the values in a list box but i only get this message:

          

           Type mismatch: 'ActiveDocument.Fields(...).Select'

       

       

      My small macro only contains this code:

       

           ActiveDocument.Fields("UNIT").Select ActiveDocument.Fields("UNIT").GetSelectedValues

       

      Can someone help me, please?

       

      Kind regards

      Piskitta