Building a check box

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

Guest

Hello Everyone and thanks for your help in advance. I am trying to develop a page that utilizes check boxes similar to those on the Professional Fax Template. I have tired using both fields and forms, but can't seem to get either the look of behavior correct. Can someone please explain how to do this or to point me to a how-to. Any help would be greatly appreciated. Thanks.
 
Try this, especially the tutorial by Dian Chapman (Please fill out this
form...):

http://word.mvps.org/FAQs/Customization/FillinTheBlanks.htm

Bill Foley
www.pttinc.com
kmcnet said:
Hello Everyone and thanks for your help in advance. I am trying to
develop a page that utilizes check boxes similar to those on the
Professional Fax Template. I have tired using both fields and forms, but
can't seem to get either the look of behavior correct. Can someone please
explain how to do this or to point me to a how-to. Any help would be
greatly appreciated. Thanks.
 
Hi Kmcnet,

If you press Alt+F9 to toggle on the field codes in a document created from
the Professional Fax template, you will see that an unchecked box is a
MacroButton field with the macro that is being called named Checkit and a
checked box is another macrobutton field with the name of UncheckIt.
Further if you open the visual basic editor, you will see the following code
in Module Professional Fax under the TemplateProject (Professional Fax)

Sub CheckIt()
ActiveDocument.AttachedTemplate.AutoTextEntries("Checked Box").Insert
Where:=Selection.Range
End Sub
Sub UncheckIt()
ActiveDocument.AttachedTemplate.AutoTextEntries("Unchecked Box").Insert
Where:=Selection.Range
End Sub

What each of these is doing is inserting an autotext entry that contains the
relevant macrobutton field for which the displayed text is the appropriate
checkbox from the Insert>Symbols dialog.
--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 
Doug has given you the basics. The nitty-gritty is that you need three
things to make these check boxes work:

1. The MacroButton field.

2. The CheckIt and UncheckIt macros.

3. The Checked Box and Unchecked Box AutoText entries (which are just the
corresponding Wingdings characters).

There are several ways to get these elements into your own document or
template.

1. The easiest way is to create a new template based on the fax template and
delete everything except the MacroButton field. If you choose this route, be
sure to select Template in the File New dialog instead of Document; if you
create a document and save it as a template, it won't contain the macros or
AutoText entries; you must create it as a template from the beginning.

2. Another way is to create a new template from scratch (see
http://www.word.mvps.org/FAQs/Customization/CreateATemplatePart1.htm) and
import these elements. You can copy/paste the MacroButton field, but you
will need the Organizer (Tools | Templates and Add-ins: Organizer) to copy
the macros and AutoText entries from the fax template to your new template.

3. If you are attempting to do this in a document (not recommended), you can
copy/paste the MacroButton field, and you can use the Organizer to copy the
macros (though you'll get a macro warning on opening the document), but
documents can't store AutoText entries, so you'll need to copy them to
Normal.dot or the template on which the document is based (if that's
different from Normal.dot). You could copy the macros to Normal.dot or the
document template as well, thus avoiding the macro warning on opening.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

kmcnet said:
Hello Everyone and thanks for your help in advance. I am trying to
develop a page that utilizes check boxes similar to those on the
Professional Fax Template. I have tired using both fields and forms, but
can't seem to get either the look of behavior correct. Can someone please
explain how to do this or to point me to a how-to. Any help would be
greatly appreciated. Thanks.
 
Send an email to (e-mail address removed) and I'll send you
a tutorial that shows how to do it. You'll have to modify the above email
address to pull out the spam protection to get it to me.
--

Charles Kenyon

See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

kmcnet said:
Hello Everyone and thanks for your help in advance. I am trying to
develop a page that utilizes check boxes similar to those on the
Professional Fax Template. I have tired using both fields and forms, but
can't seem to get either the look of behavior correct. Can someone please
explain how to do this or to point me to a how-to. Any help would be
greatly appreciated. Thanks.
 
Back
Top