[VBA Excel] Fonction avec 2 résultats
LN
-
LN -
LN -
Bonjour,
je programme une onction qui doit renvoyer 2 résultats. D'où mes questions :
-comment j'annonce ma fonction ?
-Comment je termine ma fonction ?
-Comment je l'utile dans ma macro où j'y fais appel ?
Je tourne en rond depuis plusieurs heures, merci beaucoup pour votre aide !
LN
je programme une onction qui doit renvoyer 2 résultats. D'où mes questions :
-comment j'annonce ma fonction ?
-Comment je termine ma fonction ?
-Comment je l'utile dans ma macro où j'y fais appel ?
Je tourne en rond depuis plusieurs heures, merci beaucoup pour votre aide !
LN
Configuration: Windows XP Internet Explorer 6.0
1 réponse
-
Personnelement je le ferais en renvoyant un tableau dans ta fonction cela donnerait un truc du genre :
Private Function test(ByVal entree As String)
Dim A As Variant
A = Array("pourvoir", "yes")
test = A
End Function
Private Sub pourvoir()
MsgBox test("coucou")(0)
MsgBox test("coucou")(1)
End Sub
Irem