Is there a way to a mass insert of Check Boxes without the cell link all being the same cell?
I have a huge list of items that I want to put a check box next to each one. This way when my warehouse people check it off in the sheet one of the columns will read "Available".
Problem is when I put the first box in and cell link it to E4, and then copy and paste it, all the boxes toggle based on one another.
Otherwise I have to put in 584 check boxes
Solutions or other recommendations are gladly welcome.
Also, is "True/False" the only available "response" when using Check boxes? (I Know I can write an equation based on the true false, but I am just curious)
Last edited by dagindi; 03-05-2010 at 10:09 PM.
There's a great macro here for this:
http://blog.livedoor.jp/andrewe/archives/17357484.html
Just select a range of cells and run the macro, it inserts a checkbox in every cell and links the box to the cell underneath...it even adds a nice conditional formatting so that when you check the box the cell changes color.
That should get you started.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
Rather than inserting and maintaining checkboxes, you could make cells act like checkboxes. As an example,putting this in the code module for a sheet, then B1:B10 will act like check boxes (contain TRUE or FALSE and clicking on the cell will change the value).
The hard-coded "B1:B10" can be altered to meet your situation.Private Sub Worksheet_SelectionChange(ByVal Target As Range) With Target If (Not Application.Intersect(.Cells, Range("B1:B10")) Is Nothing) _ And (.Cells.Count = 1) Then Application.EnableEvents = False .Value = Not (CStr(Target.Value) = "True") .Offset(0, 1).Select Application.EnableEvents = True End If End With End Sub
AND, True/False are the only possible return values from an ActiveX check box. (Forms text boxes have an underlying value of xlOn/xlOff that shows in the linked cell as TRUE/FALSE). Those are the only two options.
Last edited by mikerickson; 02-22-2010 at 06:42 PM.
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
JB,
Thanks for pointing me to Andrew's great site. His code does exactly what I needed.. Thanks!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks