Adding a Command Button to a Document

Vormi juhtelementide riba võimaldab dokumenti lisada märkekaste, nuppe, andmekirjeid näitavaid tabeleid ja teisi juhtelemente.

Nupu lisamine dokumenti

  1. Choose View - Toolbars - Form Controls.

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

    Hiirekursor muutub ristikujuliseks.

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

  4. Klõpsa hiire parema nupuga ja vali Juhtelement.

  5. Määra nupu omadused.

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

  7. 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 dialog, locate the macro that you want to use, and then click OK.

  8. Sulge dialoog Omadused.

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

  10. Klõpsa hiire parema nupuga ja vali Vorm.

  11. Avaneb dialoog Vormi omadused.

  12. Määra vormi omadused ja sulge dialoog.