Déjà l'Userform1 plante à l'ouverture du fichier donc dans ThisWorkbook modifier le code pour lire :
Private Sub Workbook_Open()
Sheets("EquipementsFeuil").Activate
UserForm1.Show vbmodeless
End Sub
soit sélection de la feuille "EquipementsFeuil" puis ouverture de l'Userform1
Dans l'userfom1 modification code bouton "Ajouter" pour lire
Private Sub AddListe_Button_Click()
Unload Me 'Fermeture de l'userform1
If AddMasseListe_CheckBox.Value = True Then
UserForm3.Show vbModeless
Else
UserForm2.Show vbModeless
End If
End Sub
Dans l'Userform2 modification code bouton "Appliquer" pour lire :
Private Sub Appliquer_CommandButton_Click()
Dim Nlig
'Ajoute le nouvel enregistrement suite à la dernière ligne
Nlig = Sheets("EquipementsFeuil").Range("B65536").End(xlUp).Row + 1
MsgBox Nlig
With Sheets("EquipementsFeuil")
If Stock_OptionButton.Value = True Then
.Range("A" & Nlig).Value = "EN STOCK"
End If
If EnService_OptionButton = True Then
.Range("A" & Nlig).Value = "EN SERVICE"
End If
If Spare_OptionButton = True Then
.Range("A" & Nlig).Value = "SPARE"
Else
Sheets("EquipementsFeuil").Range("A" & Nlig).Value = "HORS SERVICE"
End If
End With
Unload Me
End Sub
A mon niveau cela fonctionne