OVH Cloud OVH Cloud

Array declaration

1 réponse
Avatar
Bernard Bourée
I have some functions that should be used in a Addin Macro (.xla) under
Excel 2000 VBA but also in a VB6 module.

It seems taht the Array declaration is different :

Function MyFunction (Val as Range) as Double

for the Addin Macro

and

Function MyFunction ( Val() as double) as double

Is there a way to have the same decalartion that works in both case ?


--
Bernard Bourée
bernard@bouree.net

1 réponse

Avatar
Clément Marcotte
Val est un mot réservé de VB-VBA. Remplace ton Val par valeur.


"Bernard Bourée" a écrit dans le message de
news:3fbf484c$0$10517$

I have some functions that should be used in a Addin Macro (.xla)
under

Excel 2000 VBA but also in a VB6 module.

It seems taht the Array declaration is different :

Function MyFunction (Val as Range) as Double

for the Addin Macro

and

Function MyFunction ( Val() as double) as double

Is there a way to have the same decalartion that works in both
case ?



--
Bernard Bourée