If you want to refresh the document after the script executes, select Refresh document after script has executed.