Dim témoin
Private Sub CommandButton3_Click()
Selection_Onglets.Hide
End Sub
Private Sub UserForm_Initialize()
Me.ListBox1.Clear
For i = 2 To ActiveWorkbook.Sheets.Count
Me.ListBox1.AddItem Sheets(i).Name
Me.ListBox1.Selected(i - 2) = Sheets(i).Visible
Next i
témoin = True
End Sub
Private Sub ListBox1_change()
If témoin Then
For i = 0 To Me.ListBox1.ListCount - 1
f = ListBox1.List(i)
Sheets(f).Visible = Me.ListBox1.Selected(i)
Next i
Sheets(ListBox1.Value).Select
Unload Selection_Onglets
End If
End Sub