![]() |
|
Forum
|
|
|
#2 (permalink) |
|
XLDnaute Nouveau
Date d'inscription: novembre 2005
Messages: 16
|
Bonsoir Francky
Je ne sais pas si j'ai compris ce que tu souhaite, as tu essayé ca, Private Sub Worksheet_Activate() Dim tmp As Integer tmp = Range('A2') Range('a2') = tmp + Range('A1') End Sub la macro ne tourne pas en boucle, mais uniquement quand tu active la feuille où tu veux ton résultat. A + |
|
|
|
|
|
#3 (permalink) |
|
XLDnaute Accro
Date d'inscription: octobre 2005
Version Excel : Excel 2000 (PC)
Messages: 1 919
|
Bonsoir Francky et Enzobob,
Deux solutions, mais je préconise la première : 1) Dim InChange As Boolean Private Sub ... () **If Not InChange Then ****InChange = True ****Ton code ****InChange = False **End If End Sub 2) Private Sub ... () **Application.EnableEvents = False **Ton code **Application.EnableEvents = True End Sub Voili voilà ![]() Amicalement Charly
__________________
Amicalement, Charly2 |
|
|
|
| ANNONCES | |
![]() |
| Liens sociaux |
| Outils de la discussion | |
|
|