Refresh

Many changes made through the automation interface may not be updated immediately in the user interface. To force the screen to update, use the Refresh method. It is good practice to include this command at the end of every code section.

    msApp.Refresh