Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Multiple checkboxes and aligning

I'm building a spreadsheet where I'll need about a 100 or so checkboxes. I'm
wondering if there is an esieir way of "linking" them with the correct cell
(Most of the time they will be adjacent or the same ratio and, 2nd) if
there's an easier way of aligning (fitting) them into a cell. It seems each
"box" has to be "fitted", kind of "one at a time". I know I can copy a group
but they still need quite a bit of minor adjustments.
I hope I've explianed this coherently...enough.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Multiple checkboxes and aligning

One way is to use a macro.

This macro adds checkboxes from the Forms toolbar into a specific range:

Option Explicit
Sub testme()

Dim myCBX As CheckBox
Dim myCell As Range

With ActiveSheet
.CheckBoxes.Delete
For Each myCell In ActiveSheet.Range("B3:B10").Cells
With myCell
Set myCBX = .Parent.CheckBoxes.Add _
(Top:=.Top, Width:=.Width, _
Left:=.Left, Height:=.Height)
With myCBX
.LinkedCell = myCell.Address(external:=True)
.Caption = ""
.Name = "CBX_" & myCell.Address(0, 0)
End With
.NumberFormat = ";;;"
End With

Next myCell
End With
End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm



Dudedad wrote:

I'm building a spreadsheet where I'll need about a 100 or so checkboxes. I'm
wondering if there is an esieir way of "linking" them with the correct cell
(Most of the time they will be adjacent or the same ratio and, 2nd) if
there's an easier way of aligning (fitting) them into a cell. It seems each
"box" has to be "fitted", kind of "one at a time". I know I can copy a group
but they still need quite a bit of minor adjustments.
I hope I've explianed this coherently...enough.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Multiple checkboxes and aligning

I hope I've understood.

Select all the checkboxes by holding Ctrl and clicking each one.

On the drawing toolbar click

Draw|align or distribute|align left or however you want them aligning.

Mike

"Dudedad" wrote:

I'm building a spreadsheet where I'll need about a 100 or so checkboxes. I'm
wondering if there is an esieir way of "linking" them with the correct cell
(Most of the time they will be adjacent or the same ratio and, 2nd) if
there's an easier way of aligning (fitting) them into a cell. It seems each
"box" has to be "fitted", kind of "one at a time". I know I can copy a group
but they still need quite a bit of minor adjustments.
I hope I've explianed this coherently...enough.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Checkboxes Annie Excel Discussion (Misc queries) 2 June 11th 07 05:06 PM
Problem vertically aligning multiple rows with tickboxes added usingVB. Westie New Users to Excel 4 July 27th 06 09:30 AM
Aligning multiple graphs F*SH Charts and Charting in Excel 5 July 18th 06 09:51 AM
Aligning decimal numers to the centre of the cell and aligning dec Ramesh Babu Excel Discussion (Misc queries) 1 July 1st 06 10:33 PM
Multiple Checkboxes Shortcut? Jason Excel Discussion (Misc queries) 1 October 18th 05 08:08 PM


All times are GMT +1. The time now is 10:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"