Option Explicit
Public Base As Worksheet
Public Der2 As Variant
Public Suite As Boolean
Private Sub ComboBox1_Change()
Set Base = Sheets(Me.ComboBox1.Value)
Base.Activate
Der2 = Range("A1048576").End(xlUp).Row
Suite = True
Me.Hide
Call ImportIJ
End Sub
Sub ImportIJ()
Dim IJ, SS As Worksheet
Dim Source As Workbook
Dim Fsource, IJSS As String
Dim z, i As Integer
Dim Fichier, der, prem As Variant
Dim Cel As Range
Dim Mois As Byte
Reprise:
Suite = False
Sheets("Filtre").Activate
'Récupération des matricules
For z = 2 To der
Cells(z, 2).Value = Application.WorksheetFunction.Index(Sheets(Base).Range("A9:B" & Der2), _
Application.WorksheetFunction.Match(Cells(z, 1).Value, (Sheets(Base).Range("A9:A" & Der2)), 0), 1)
Next z