COMMENT FAIRE FONCTIONNER 2 MACRO L'UNE APRES L'AUTRE

E

ERIC

Guest
BONJOUR

1°) J'AI UNE MACRO QUI ENREGISTRE DS UN REPERTOIRE
2°) J'AI UNE AUTRE MACRO QUI ENREGISTRE LES DONNEES DS UNE LISTE

AUJOURD'HUI CHAQUE MACRO A UN BOUTON ET NECESSITE 2 MANIPULATIONS. COMMENTE FAIRE POUR EN APPUYANT SUR UN SEUL BOUTON POUVOIR EXECUTER LES 2 MACROS L'UNE APRES L'AUTRE.

MERCI D'AVANCE
 
M

modest

Guest
Voila un code pour cela : tu ajoute celui-ci au code de la 1ere macro
Dim wb as string
Dim NomMacro as string
Dim arg1 as string
WB="classeur.xls" (classeur ou se trove la macro avec eventuellemnt son chemin d'accés si repertoire different)
NomMacro="Macro1" (nom de la macro a executer)
Arg1="Val1" (????)
Application.run WB&"!"& NomMacro, Arg1

va voir ici: www.deja.com/getdoc.xp?AN=550234882&fmt=text

et sur touareg.citiweb.net
bonne continuation
modest
 

Discussions similaires

Statistiques des forums

Discussions
311 733
Messages
2 082 015
Membres
101 870
dernier inscrit
Dethomas