Tips for scheduling a refresh in SAS® Add-In for Microsoft Office


The Schedule task in SAS Add-In for Microsoft Office creates a VBScript file that Windows Task Scheduler uses to execute a refresh on a specified schedule. The VBScript created by the SAS Add-In for Microsoft Office is saved in C:\Users\<your-user-id>\Documents\My SAS Files\Add-In for Microsoft Office. To successfully schedule a refresh in the SAS Add-In for Microsoft Office, follow these guidelines:

  1. The recommended and default Windows Task Scheduler security setting for scheduling a refresh in the SAS Add-In for Microsoft Office is Run only when user is logged on.
  2. The Windows user must be able to use Windows Task Scheduler and execute VBScript programs independently of SAS Add-In for Microsoft Office.
  3. Metadata credentials must be cached in the SAS Add-In for Microsoft Office user's connection profile. To see this information, navigate to Tools ► Connections. Choose the active server and click Modify. Make sure that the Save login in profile option is checked and that the selection persists. If it does not persist, contact your SAS metadata administrator and request the ability to cache metadata credentials.
  4. A scheduled refresh does not execute if the SAS Add-In for Microsoft Office file is open. Ensure that you have saved and closed the file before it is scheduled to execute.
  5. The SAS Add-In for Microsoft Office file must be saved to your local computer.
  6. SAS Add-In for Microsoft Office must be installed on the machine where the VBScript file is scheduled to execute.
  7. The refresh must execute successfully from VBScript outside of Windows Task Scheduler. Execute the VBScript outside of Windows Task Scheduler to verify that the project runs successfully in batch. 

Suggestions for using Run whether user is logged on or not:

"Run only if logged on" is deselected

Configure for is set to "Windows Server 2003, Windows XP, or Windows 2000"