Voici mon pb:
Je déclare une function ds un module:
Public Function Extract(ZoneRech As String, Req As String, MyCombo As ComboBox)
With ExcelTable
.Sheets("ReqAffec").Activate
.Range("E1").FormulaR1C1 = ZoneRech
.Range("E2").FormulaR1C1 = Req
end with
Quand je veux appeller ma function extract, je ne sais pas comment passer ma combobox (CmbTyp) en paramètre:
Private Sub Form_Load()
Extract ("EaType", "*",passser en paramètre CmbTyp?????? )
End Sub