Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CheckBox Placement Problem

Status
Not open for further replies.

npongar

Programmer
Oct 3, 2003
12
CA
I have a sheet that contains numerous forms checkboxes in the same column on consecutive rows. I have all the checkboxes set to "move but don't size with cells". Each row has cells that are set to autofit the row height to match the contents. My problem is when a lot of text is entered and a row expands, it messes up the placement of my checkboxes, and I end up with two checkboxes in one cell, and no checkboxes in the cell below it.

Any suggestions on how to fix this?
 
hi,

How 'bout this?
Code:
Sub AlignCheckBoxes()
    r = 1   'first row for checkbox
    For Each sh In ActiveSheet.Shapes
        sh.Top = Cells(r, 1).Top
        sh.Left = Cells(r, 1).Left
        r = r + 1
    Next
End Sub
;-)

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top