Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get a button to work in word

Status
Not open for further replies.

nochoice

Programmer
Jun 17, 2003
72
CA
So,

I'm very new to this, and what I have is a WORD document with several check boxes and a button.

How do I get the document 'Compiled' I need the button to work. When I click the button I get the little resizing squares around the button.

How do I activate a WORD button?
 
OK I figured that out, all I needed to do was right click on the toolbars and select the Control Toolbox toolbar and click on the 'Exit Design Mode' button.

Now how do I get the button to run a Macro I've written?
 
You need to go back into design mode. When you double click the button, it should bring you right into VBA under a new sub routine called Sub CommandButton1_Click ()

Just write Call MyMacro where MyMacro is the name of the macro you want to run when you hit the button. That should do it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top