zoom38
08-26-2015, 11:07 AM
Hello, I have five checkboxes in a row. Four of them line up nicely but one of them does not. The issue is that this checkbox has a caption that is too long for the space so wordwrap is on. Because of wordwrap the text is centered vertically to the checkbox which in turn misaligns it with the other checkboxes. I'm looking to have the checkbox itself aligned with the top line of the caption instead of centered vertically with the caption. Is this possible? Below is the code I use to keep the checkboxes aligned.
With Me.Shapes("CheckBox1")
.Height = 20
.Left = 413
.Top = 50
.Width = 50
End With
With Me.Shapes("CheckBox2")
.Height = 30
.Left = 470
.Top = 50
.Width = 50
End With
With Me.Shapes("CheckBox3")
.Height = 20
.Left = 540
.Top = 50
.Width = 50
End With
With Me.Shapes("CheckBox4")
.Height = 20
.Left = 590
.Top = 50
.Width = 58
End With
With Me.Shapes("CheckBox5")
.Height = 20
.Left = 650
.Top = 50
.Width = 50
End With
thanks
Gary
With Me.Shapes("CheckBox1")
.Height = 20
.Left = 413
.Top = 50
.Width = 50
End With
With Me.Shapes("CheckBox2")
.Height = 30
.Left = 470
.Top = 50
.Width = 50
End With
With Me.Shapes("CheckBox3")
.Height = 20
.Left = 540
.Top = 50
.Width = 50
End With
With Me.Shapes("CheckBox4")
.Height = 20
.Left = 590
.Top = 50
.Width = 58
End With
With Me.Shapes("CheckBox5")
.Height = 20
.Left = 650
.Top = 50
.Width = 50
End With
thanks
Gary