+ Reply to Thread
Results 1 to 2 of 2

Check Boxes

  1. #1
    Bruce
    Guest

    Check Boxes


    How do I fill a column of 50 rows with check boxes ? Fill Down doesn't seem
    to do it..

    Best Wishes
    Bruce
    ( Illegitimi non carborundum est )



  2. #2
    Dave Peterson
    Guest

    Re: Check Boxes

    Maybe you could just use a macro to populate the range you want.


    Option Explicit
    Sub addCBX()
    Dim myCBX As CheckBox
    Dim myCell As Range

    With ActiveSheet
    .CheckBoxes.Delete 'nice for testing
    For Each myCell In .Range("a1:a50").Cells
    With myCell
    Set myCBX = .Parent.CheckBoxes.Add _
    (Top:=.Top, Width:=.Width, _
    Left:=.Left, Height:=.Height)
    With myCBX
    .LinkedCell = myCell.Address(external:=True)
    .Caption = "" 'or whatever you want
    .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

    Bruce wrote:
    >
    > How do I fill a column of 50 rows with check boxes ? Fill Down doesn't seem
    > to do it..
    >
    > Best Wishes
    > Bruce
    > ( Illegitimi non carborundum est )


    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1