A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Macro checkbox



 
 
Thread Tools Display Modes
  #1  
Old February 5th, 2010, 04:29 PM posted to microsoft.public.word.newusers
busterp
external usenet poster
 
Posts: 2
Default Macro checkbox

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.

  #2  
Old February 5th, 2010, 04:44 PM posted to microsoft.public.word.newusers
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
Default Macro checkbox

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 USA
http://word.mvps.org

"busterp" wrote in message
...
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.



  #3  
Old February 5th, 2010, 05:16 PM posted to microsoft.public.word.newusers
busterp
external usenet poster
 
Posts: 2
Default Macro checkbox

On Feb 5, 10:44*am, "Suzanne S. Barnhill" 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" wrote in message

...



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
  #4  
Old February 5th, 2010, 08:31 PM posted to microsoft.public.word.newusers
Jay Freedman
external usenet poster
 
Posts: 9,488
Default Macro checkbox

On Fri, 5 Feb 2010 09:16:45 -0800 (PST), busterp
wrote:

On Feb 5, 10:44*am, "Suzanne S. Barnhill" 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" wrote in message

...



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.
  #5  
Old February 5th, 2010, 11:17 PM posted to microsoft.public.word.newusers
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
Default Macro checkbox

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" wrote in message
...
On Fri, 5 Feb 2010 09:16:45 -0800 (PST), busterp
wrote:

On Feb 5, 10:44 am, "Suzanne S. Barnhill" 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" wrote in message

...



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.


  #6  
Old February 6th, 2010, 01:28 AM posted to microsoft.public.word.newusers
Jay Freedman
external usenet poster
 
Posts: 9,488
Default Macro checkbox


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 _
Whe=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"
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" wrote in message
.. .
On Fri, 5 Feb 2010 09:16:45 -0800 (PST), busterp
wrote:

On Feb 5, 10:44 am, "Suzanne S. Barnhill" 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" wrote in message

...



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.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.