You will need to do the following to implement a macro that performs a setpoint and assign it to a button:
Select a location on your spreadsheet where you want to enter the point's setpoint value. Make a note of the sheet name and cell location.
If you have not already done so, select Toolbars on the View menu and activate the Drawing toolbar.
Select Record Macro on the Tools menu on your spreadsheet.
Select Record New Macro on the Record Macro submenu. The Record New Macro dialog box will open.
Enter your new macro name in the Macro Name box.
Select This Workbook from the Store In input box.
Select MS Excel 4.0 Macro from the Language box.
A new Macro sheet will be created and the macro name will be placed in the first cell (R1C1) of the sheet.
Select Record Macro on the Tools menu.
Select Stop Recording on the Record Macro submenu.
Enter your commands in the cells under the macro name on the Macro page.
Go back to your sheet.
Click Create Button on the Drawing toolbar.
Create a button on the spreadsheet. When you do this, the Assign Macro dialog box will open.
Select the setpoint macro from the Assign Macro dialog box.
Whenever a user enters the setpoint in the cell referenced by the macro, then clicks the button, the setpoint value will be sent to CIMPLICITY software.
3. Modify point data.