VB Workbooks

jeanjeandada Messages postés 152 Date d'inscription lundi 21 avril 2008 Statut Membre Dernière intervention 20 novembre 2011 - 3 avril 2009 à 08:59
cnt Messages postés 219 Date d'inscription lundi 21 novembre 2005 Statut Membre Dernière intervention 20 décembre 2010 - 3 avril 2009 à 18:44
Salut,

La petite question du matin :
Connaissez vous le code pour savoir si un Workbooks est ouvert ==>
Si Workbooks "machin" ouvert alors ......

Merci

2 réponses

CryoCid Messages postés 13 Date d'inscription jeudi 19 mars 2009 Statut Membre Dernière intervention 3 avril 2009
3 avril 2009 à 10:18
Salut jeanjeandada,

J'ai trouvé ça pour toi : http://www.excelpourtous.com/index.php?artid=32

Si tu veux plus de précision tu peux développer ta question stp??

Bonne journée!
0
cnt Messages postés 219 Date d'inscription lundi 21 novembre 2005 Statut Membre Dernière intervention 20 décembre 2010 1
3 avril 2009 à 18:44
salut
tu peux essayer cela:

For i = 1 To Windows.Count
    If Workbooks(i).Name = "machin" Then
        Windows("machin").Activate
    End If
Next

CNTJC
0
Rejoignez-nous