Run script when a user saves a form
- On the Tools menu, click Form Options, and then click the Open and Save tab.
- Under Save behavior, select the Save using custom code check box, and then click Edit.
- In the Microsoft Script Editor (MSE), locate the following comments in the code, and replace them with the code you want to run before and after the user saves the form:
// Write the code to be run before saving here.
// Write the code to be run after saving here.