2 pièce(s) jointe(s)
Debutant.Instructions avec if
Bonjour
Débutant, je bloque sur fin instructions
Citation:
Bloc If sans End if
Surement du mal à chercher
Merci de votre aide
Code:
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 30 31 32 33 34
| Sub testselectioncolomn()
'
' testselectioncolomn Macro
'
With Sheets("JF").Select
If Range("a1") = "b1" Then
Range("B2:B14").Select
Selection.Copy
Range("N2:N14").Select
ActiveSheet.Paste
Application.CutCopyMode = False
If Range("a1") = "c1" Then
Range("c2:c14").Select
Selection.Copy
Range("N2:N14").Select
ActiveSheet.Paste
Application.CutCopyMode = False
If Range("a1") = "d1" Then
Range("d2:d14").Select
Selection.Copy
Range("N2:N14").Select
ActiveSheet.Paste
Application.CutCopyMode = False
If Range("a1") = "e1" Then
Range("e2:e14").Select
Selection.Copy
Range("N2:N14").Select
ActiveSheet.Paste
Application.CutCopyMode = False
End If
End Sub |