Text Documents (Writer)
HTML Documents (Writer Web)
Spreadsheets (Calc)
Presentations (Impress)
Drawings (Draw)
Database Functionality (Base)
Formulae (Math)
Charts and Diagrams
Macros and Scripting
Office Installation
Common Help Topics
OneOffice Logo

Adding a Command Button to a Document

You can use the Form Controls toolbar to add check boxes, buttons, tables showing data records, and other controls to a document.

To Add a Button to a Document

  1. Choose View - Toolbars - Form Controls.

  2. On the Form Controls toolbar, click the Push Button icon.

The mouse pointer changes to a cross-hair.

  1. In the document, drag to draw the button.

  2. Right-click the button and choose Control Properties.

  3. Specify the properties of the button.

  4. To change the button label, click the General tab, and edit the text in the Label box.

  5. To attach a macro to the button, click the Events tab, and click the ... button beside the button action that you want to run the macro. In the Assign Macro dialogue box, locate the macro that you want to use, and then click OK.

  6. Close the Properties dialogue box.

  7. (Optional) Specify the properties of the form that the button belongs to.

  8. Right-click the button and choose Form Properties.

  9. The Form Properties dialogue box opens.

  10. Specify the properties for the form and then close the dialogue box.