PC Review


Reply
Thread Tools Rate Thread

Can you Add Check Boxes??

 
 
=?Utf-8?B?Qnl0aHN4LUFkZGFnaW8=?=
Guest
Posts: n/a
 
      6th Nov 2006
I'd like to add a column in a worksheet with check boxes to indicate steps in
a procedure that have been completed for items in each row. And upon the
check boxes being marked have that row turn a different color and maybe
change cell values. I am pretty familar with macros and have used Forms
before, but what I am asking is if you can put a form object (checkbox)
directly on an excel spreadsheet??

Thanks for your help!
 
Reply With Quote
 
 
 
 
Norman Jones
Guest
Posts: n/a
 
      6th Nov 2006
Hi Bythsx-Addagio,

To add checkboxes programmatically, try something like:

'=============>>
Public Sub Tester()
Dim WB As Workbook
Dim SH As Worksheet
Dim rng As Range
Dim rCell As Range

Set WB = ThisWorkbook
Set SH = WB.Sheets("Sheet1")
Set rng = SH.Range("B2:B120")

Application.ScreenUpdating = False
For Each rCell In rng.Cells
With SH.CheckBoxes.Add(rCell.Left + 5, rCell.Top - 2, 5, 5)
.Caption = ""
.LinkedCell = rCell.Address(False, False)
End With
rCell.Font.Color = vbWhite
Next rCell
Application.ScreenUpdating = True

End Sub
'<<=============


You can imsert a checkboxes manaully via:

View | Toolbars | Forms (or Control Toolbox)



---
Regards,
Norman



"Bythsx-Addagio" <(E-Mail Removed)> wrote in message
newsCE93515-D750-4C1D-92FF-(E-Mail Removed)...
> I'd like to add a column in a worksheet with check boxes to indicate steps
> in
> a procedure that have been completed for items in each row. And upon the
> check boxes being marked have that row turn a different color and maybe
> change cell values. I am pretty familar with macros and have used Forms
> before, but what I am asking is if you can put a form object (checkbox)
> directly on an excel spreadsheet??
>
> Thanks for your help!



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      6th Nov 2006
I find this technique pretty easy...

Select the range
Format|cells|number tab|custom category
In the "type:" box, put this:
alt-0252;alt-0252;alt-0252;alt-0252

But hit and hold the alt key while you're typing the 0252 from the numeric
keypad.

It should look something like this when you're done.
ü;ü;ü;ü
(umlaut over the lower case u separated by semicolons)

And format that range of cells as Wingdings.

Now, no matter what you type (spacebar, x, anyoldtextatall), you'll see a check
mark.

Hit the delete key on the keyboard to clear the cell.

If you have to use that "checkmark" in later formulas:

=if(a1="","no checkmark","Yes checkmark")

Bythsx-Addagio wrote:
>
> I'd like to add a column in a worksheet with check boxes to indicate steps in
> a procedure that have been completed for items in each row. And upon the
> check boxes being marked have that row turn a different color and maybe
> change cell values. I am pretty familar with macros and have used Forms
> before, but what I am asking is if you can put a form object (checkbox)
> directly on an excel spreadsheet??
>
> Thanks for your help!


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to restore check boxes changed by gremlin to text boxes? Rumple41 Microsoft Access 8 22nd Dec 2008 06:31 AM
Show check boxes which arn't blank, hide check boxes which are bla Accessorise Microsoft Access Forms 1 12th Jun 2008 08:29 AM
Make check boxes look like radio check boxes? AAaron123 Microsoft VB .NET 2 24th Apr 2008 02:24 AM
Concat unbound text boxes for true check boxes EmAlbritton via AccessMonster.com Microsoft Access Reports 10 1st Nov 2006 04:49 PM
Excel controls (check boxes, text boxes, etc.) not loading =?Utf-8?B?a3N3aW50aA==?= Microsoft Excel Crashes 3 29th Jun 2005 08:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:16 AM.