Bonjour
Je recherche un lexique listant toutes les instructions pour VBA excel.
Exemple :
Comment comprendre ceci :
Ligne_concernee = Application.WorksheetFunction.Match(Reponse, Sheets("Les territoires").Range("F:F"), 0)
ou ce code :
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Count > 1 Then End
Application.EnableEvents = False
If Target.Count > 1 Then End
If Not Intersect(Target, Union(Range("B6:AK34"), Range("AM6:BV34"))) Is Nothing Then
If Cells(5, Target.Column) = "Sorties" Then
Set cell = Range(Cells(6, 3), Cells(34, Target.Column - 1)).Find(Val(Target), lookat:=xlWhole)
If Not cell Is Nothing Then
Target.Offset(0, 1) = cell.Offset(0, -1)
Range(cell, cell.Offset(0, -1)).ClearContents
End If
ElseIf Cells(5, Target.Column) = "Entrées" Then
Set cell = Range(Cells(6, 1), Cells(34, Target.Column - 1)).Find(Val(Target), lookat:=xlWhole)
If Not cell Is Nothing Then
'Target.Offset(0, -1) = cell.Offset(0, 1)
Range(cell, cell.Offset(0, 1)).ClearContents
End If
End If
End If
Application.EnableEvents = True
End Sub
Sub Evenement()
Application.EnableEvents = True
End Sub
Je ne cherche pas un lexique des instructions seules, mais comment comprendre l'association des instructions.
Voir le 1er exemple.
Si un tel lexique existe. Merci.