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
|
With UserForm3
For CtrK = 1 To .Controls.Count
For Each CelluleChamps In AireChamps 'CtrJ = LBound(MatriceConsultations, 1) To UBound(MatriceConsultations, 1)
If CelluleChamps = .Controls(CtrK - 1).Name Then
TagControle = CelluleChamps.Offset(0, ColRepereColonne - ColChampsTextBox) & "-" & CelluleChamps.Offset(0, ColFormat - ColChampsTextBox) & "-" & CelluleChamps.Offset(0, ColPosition - ColChampsTextBox) & "-" & CelluleChamps.Offset(0, ColObligatoire - ColChampsTextBox)
.Controls(CtrK - 1).Tag = TagControle
.Controls(CtrK - 1).ControlTipText = TagControle 'CelluleChamps.Offset(0, ColMatrices - ColChampsTextBox)
If CelluleChamps.Offset(0, ColObligatoire - ColChampsTextBox) = "Oui" Then
.Controls(CtrK - 1).BackColor = RGB(204, 204, 255)
End If
CelluleChamps.Interior.Color = RGB(204, 204, 255)
End If
Next CelluleChamps
Next CtrK
NbControlesNonReconnus = 0
For Each CelluleChamps In AireChamps 'CtrJ = LBound(MatriceConsultations, 1) To UBound(MatriceConsultations, 1)
With CelluleChamps
If .Value <> "" And .Interior.Color <> RGB(204, 204, 255) Then
NbControlesNonReconnus = NbControlesNonReconnus + 1
End If
End With
Next CelluleChamps
End With |
Partager