#1   Report Post  
John
 
Posts: n/a
Default Macro in Word

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.
  #2   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi ?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 :-)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I divide a page into three sections? Bonnie Microsoft Word Help 3 May 8th 23 02:47 AM
formatting links from excel into word (extra line feeds) JGT Microsoft Word Help 1 December 9th 04 11:01 AM
saving the workspace Mike Microsoft Word Help 3 December 8th 04 11:32 PM
Word 2003 - create a macro with a pause in it. Katie Smith Microsoft Word Help 1 December 1st 04 09:30 PM
Acrobat writer 5.0 Compatibility with word 2003 Norman Marshall Microsoft Word Help 1 November 25th 04 11:12 AM


All times are GMT +1. The time now is 01:39 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"