1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| Dim chk As CheckBox
For I = 1 To 200
Sheets("" & I).Unprotect "pasbbil"
Set chk = Sheets("" & I).CheckBoxes.Add(456, 16.5, 51, 24)
With chk
.Text = "Nouveau Domaine"
.ShapeRange.ScaleWidth 1.97, msoFalse, msoScaleFromTopLeft
.Value = xlOff
.LinkedCell = "Récap!$J$" & I + 1
.Display3DShading = False
.ShapeRange.Fill.Visible = msoTrue
.ShapeRange.Fill.Solid
.ShapeRange.Fill.ForeColor.SchemeColor = 52
.ShapeRange.Fill.Transparency = 0#
.ShapeRange.Line.Weight = 0.5
.ShapeRange.Line.DashStyle = msoLineSolid
.ShapeRange.Line.Style = msoLineSingle
.ShapeRange.Line.ForeColor.SchemeColor = 64
.ShapeRange.Line.BackColor.RGB = RGB(255, 255, 255)
.ShapeRange.IncrementLeft -397.5
.ShapeRange.IncrementLeft 2.25
.ShapeRange.IncrementTop 188.25
.ShapeRange.ScaleWidth 1.02, msoFalse, msoScaleFromBottomRight
.ShapeRange.ScaleWidth 0.99, msoFalse, msoScaleFromBottomRight
End With
Sheets("" & I).Protect "Pasbbil" |