Private O As Worksheet
Private LI As Integer
Private COL As Integer
Private Sub UserForm_Initialize()
Me.ComboBox1.List = Application.Transpose(Array("2017", "2018", "2019", "2020"))
Me.ComboBox2.List = Application.Transpose(Array("Barka", "Espoir", "FBC6"))
Me.ComboBox3.List = Application.Transpose(Array("G0", "G1", "G2", "G3"))
End Sub
Private Sub ComboBox1_Change()
Set O = Worksheets(Choose(Me.ComboBox1.ListIndex + 1, "2017", "2018", "2019", "2020"))
End Sub
Private Sub ComboBox2_Change()
LI = Me.ComboBox2.ListIndex + 8
End Sub
Private Sub ComboBox3_Change()
COL = Me.ComboBox3.ListIndex + 10
Me.TextBox1.Text = O.Cells(LI, COL).Value
End Sub