bigboy2g15
Messages postés66Date d'inscriptionmercredi 31 mars 2004StatutMembreDernière intervention 3 juin 2004
-
2 juin 2004 à 16:23
econs
Messages postés4030Date d'inscriptionmardi 13 mai 2003StatutModérateurDernière intervention23 décembre 2008
-
2 juin 2004 à 16:59
Je voudrais si il existait un equivalent de isnull en isnothing
C'est pour une gestion d'erreur genre :
on error goto prob
set wd = new word.application
wd.add(adr_fic)
set exl = new excel.applicaton
exl.add(adr_fic2)
exit sub
prob:
set wd = nothing
set exl = nothing
Si ici une erreur survient à wd.add, l'application va planter à set exl = nothing.
Donc je voudrai détecter si une variable existe ou non, d'ou le isnothing (qui ne marche pas)
Si quelqu'un a une solution, je le remrecie d'avance.