Controls > Advanced Controls > Enabling and Disabling Advanced Controls
Enabling and Disabling Advanced Controls
To alert and protect users against potentially harmful code, PTC Mathcad Prime issues a warning message every time you attempt to open a worksheet that contains advanced controls. If you open a worksheet containing advanced controls that you know to be safe, click Yes when the warning box is displayed. Clicking Yes enables all the controls in the worksheet. If you click No, the advanced controls are disabled and the script is not functional. In this case, you can still access the Script Editor tab to make changes to the script, but the Properties tab remains disabled. If you apply the changes, the script does not run.
If you initially choose No but want to enable the advanced controls later, follow these steps:
1. In the worksheet, select the controls you want to enable.
2. Right-click the control and select Enable Region. Alternatively, go to the Calculation tab and Select Disable Region.
If you want to hide the warning permanently, click > Options and select Hide Advanced Controls warning.
Configuring Advanced Controls
By default, advanced controls scripts are not executed when opening or recalculating the worksheet. The scripts run when interacting with the control (e.g. changing a selection or clicking a button). To configure the events that trigger the execution of the scripts, click > Options and select Run the Advanced Controls scripts on worksheet open or Run the Advanced Controls scripts on worksheet recalculate. You can also enable both options, this may cause a performance decrease.
Was this helpful?