Bonjour le forum,
Merci à toute la communauté pour le travail remarquable
Mon problème est le suivant:
J'ai détecté une macro qui fait trembler mon tableau excel 2007 lorsque j'utilise les touches de directions ,car en supprimant la macro en question mon tableau redevient normal.Je crois que le code n'est pas optimisé.Le voici:
Merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 Private Sub Worksheet_SelectionChange(ByVal Target As Range) For Each Cell In Range("K11:K52") If Cell = "" Then Cell.Offset(0, 2) = "" End If Next For Each Cell In Range("O11:O52") If Cell = "" Then Cell.Offset(0, 2) = "" End If Next For Each Cell In Range("T11:T52") If Cell = "" Then Cell.Offset(0, 2) = "" End If Next For Each Cell In Range("Z13:Z51") If Cell = "" Then Cell.Offset(0, 3) = "" End If Next For Each Cell In Range("AK16:AK30,AT16:AT30,BC16:BC30,BL16:BL30,BU16:BU30,CD16:CD30") If Cell = "" Then Cell.Offset(0, 2) = "" End If Next End Sub
Partager