Sinon passer 6 lignes en VBA sur excel 2016
Bonjour, bonjour,
Alors voici une partie de mon programme:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| <div style="margin-left:40px">
Dim bb As Worksheet
Dim bn As Range
Dim baa As Integer
Sheets("ProductionParameters").Select
Set bb = Worksheets("ProductionParameters")
Set bn = bb.Rows(1).Find("Lampe N°2 (Mesure) - 1002", , xlValues, xlWhole)
If bn Is Nothing Then Exit Sub
baa = bn.Column
Columns(baa).Select
Selection.Copy
Sheets("paramètres").Select
Columns("AC:AC").Select
ActiveSheet.Paste
Sheets.Add After:=ActiveSheet
Sheets("Feuil2").Select
Sheets("Feuil2").Name = "x"
Sheets("x").Select</div> |
La ligne suivante me pose problème, je voudrais qu'au lieu de sortir du sub le code saute quelque ligne afin d'arriver ici à la ligne 16 afin de continuer le programme:
Code:
<div style="margin-left:40px"> If bn Is Nothing Then Exit Sub</div>
Merci d'avance pour votre aide