Exemple : Fonction qui calcule la surface d'une sphère


'
' Surface d'une sphère
'
Function SurfSphère(Rayon)
    pi = Application.pi()
    SurfSphère = 4 * pi * Rayon ^ 2
End Function

Revenir à "Macro fonction"