From: Jay Freedman on 5 Feb 2010 20:28 There's no problem with the MacroButton fields; they'll operate even if they're in protected text. However, the macros need some additions if the form is protected. In the CheckIt and UncheckIt macros, the document has to be unprotected before the AutoText entry is inserted, and reprotected afterward. For CheckIt, Sub CheckIt() If ActiveDocument.ProtectionType <> wdNoProtection Then ActiveDocument.Unprotect End If ActiveDocument.AttachedTemplate.AutoTextEntries( _ "Checked Box on the Fly").Insert _ Where:=Selection.Range ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True End Sub and similarly for UncheckIt. You also need to make sure the MacroButton field requires only one click to fire, which means adding this line to the AutoOpen macro: Options.ButtonFieldClicks = 1 On Fri, 5 Feb 2010 17:17:14 -0600, "Suzanne S. Barnhill" <sbarnhill(a)mvps.org> wrote: >Those check boxes won't be compatible with other form fields in a protected >form, though, will they? > >-- >Suzanne S. Barnhill >Microsoft MVP (Word) >Words into Type >Fairhope, Alabama USA >http://word.mvps.org > >"Jay Freedman" <jay.freedman(a)verizon.net> wrote in message >news:dvvom51pkhq8solj7klu54ma6gsmfliqlo(a)4ax.com... >> On Fri, 5 Feb 2010 09:16:45 -0800 (PST), busterp <busterp(a)gmail.com> >> wrote: >> >>>On Feb 5, 10:44 am, "Suzanne S. Barnhill" <sbarnh...(a)mvps.org> wrote: >>>> Why not just apply bold formatting to the check box form field (and >>>> perhaps >>>> make it a larger font size)? >>>> >>>> -- >>>> Suzanne S. Barnhill >>>> Microsoft MVP (Word) >>>> Words into Type >>>> Fairhope, Alabama USAhttp://word.mvps.org >>>> >>>> "busterp" <bust...(a)gmail.com> wrote in message >>>> >>>> news:54feffc4-be64-405c-81a1-915234a8cfb7(a)d37g2000yqa.googlegroups.com... >>>> >>>> >>>> >>>> > Word, making a template. I used form menu, chk box form field. The >>>> > "X" (when checked) isn't dark enough for our taste so I'm trying to >>>> > design an alternative that would be DARKER. >>>> >>>> > So instead, I put in a text form field in a small cell with a border. >>>> > Type is regular text, one position, uppercase. Thus when I put in an >>>> > "x" it prints a bold "X" in the cell. >>>> >>>> > Rather than my way of having to put an "x" in the field, is there a >>>> > macro I could put in the text form macro on entry field that would >>>> > toggle a space (like the real chk box) between a checked and unchecked >>>> > box.- Hide quoted text - >>>> >>>> - Show quoted text - >>> >>>Hi Suzanne, >>> >>>That was my first thought too. It doesn't seem to effect the actual >>>"X" in the center of the box. It's skinny and light no matter what I >>>do. >>> >>>I did tests with bold, arial bold, bigger sizing. I can't get it to >>>stand out like a bold letter "X" does as an alternate method. I just >>>don't like having to type in an "X" . >>> >>>rob >> >> Have a look at Greg Maxey's page >> http://gregmaxey.mvps.org/Add_Toggle_Objects.htm. >> >> -- >> Regards, >> Jay Freedman >> Microsoft Word MVP FAQ: http://word.mvps.org >> Email cannot be acknowledged; please post all follow-ups to the newsgroup >> so all may benefit.
First
|
Prev
|
Pages: 1 2 Prev: Mail merge multiple times on one page? Next: How do i simply type a letter and then print it |