Macro in Word

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I finally figured out how to creat a contol box in word, but how do you
assign a macro to it. I have created the macro and it works, but i cant get
it assigned to the button.
 
Hi =?Utf-8?B?Sm9obg==?=,
I finally figured out how to creat a contol box in word, but how do you
assign a macro to it. I have created the macro and it works, but i cant get
it assigned to the button.
You've inserted something from the CONTROLS TOOLBOX? Then double-click the
control in the Word document to open the code page. You'll see that it's in the
ThisDocument module of the current module. If the default event action is what
you want, simply copy the code you have between Sub and End Sub into this
Sub...End Sub. If you want a different action, go to the list at the top-right
of the code window, drop it down, and choose the event you need, then copy the
code into that Sub...End Sub, instead.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
 
Back
Top