3 Replies Latest reply: Apr 24, 2009 3:35 PM by Laurie O'Neill RSS

    Checking return for Select in macro

      I want to provide a message if the Select in the macro fails. With the code below, I'm getting the error Expected 'Then', with "District of Columbia" = false then highlighted. Anyone have a suggestion? Thanks.







      if ActiveDocument.Fields("STATE_NAME"). Select "District of Columbia" = false then msgbox("Data does not exist for the selected Reporting State.")


      end if