bonjour le forum malgré mainte manipulation afin d'automatiser mon tableau en saisie , je vous est mis un fichier avec le parcours de la saisie
le fichier parleras mieux que de long discours en attendant je continue mes recherche ,je suis arrive a ce niveau ma selection des cellules a saisir
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$D$3" Then Range("H3").Select
If Target.Address = "$H$3" Then Range("G5").Select
If Target.Address = "$G$18" Then Range("F19").Select
If Target.Address = "$F$19" Then Range("f21").Select
If Target.Address = "$F$21" Then Range("G21").Select
If Target.Address = "$G$21" Then Range("F22").Select ' si 21=0 aller directement en F32
If Target.Address = "$F$22" Then Range("G22").Select
If Target.Address = "$G$22" Then Range("F23").Select
If Target.Address = "$F$23" Then Range("G23").Select
If Target.Address = "$G$23" Then Range("F24").Select
If Target.Address = "$F$24" Then Range("G24").Select
If Target.Address = "$G$24" Then Range("F25").Select
If Target.Address = "$F$25" Then Range("G25").Select
If Target.Address = "$G$25" Then Range("F26").Select
If Target.Address = "$F$26" Then Range("G26").Select
If Target.Address = "$G$26" Then Range("F27").Select
If Target.Address = "$F$27" Then Range("G27").Select
If Target.Address = "$G$27" Then Range("F28").Select
If Target.Address = "$F$28" Then Range("G28").Select
If Target.Address = "$G$28" Then Range("F29").Select
If Target.Address = "$F$29" Then Range("G29").Select
If Target.Address = "$G$29" Then Range("F30").Select
If Target.Address = "$F$30" Then Range("G30").Select
If Target.Address = "$G$30" Then Range("F31").Select
If Target.Address = "$F$31" Then Range("G31").Select
If Target.Address = "$G$31" Then Range("F32").Select
If Target.Address = "$F$32" Then Range("F36").Select
If Target.Address = "$F$36" Then Range("G43").Select
If Target.Address = "$G$43" Then Range("G45").Select 'si g43 =0 aller directement en H70
If Target.Address = "$G$45" Then Range("G46").Select
If Target.Address = "$G$46" Then Range("G47").Select
If Target.Address = "$G$47" Then Range("G48").Select
If Target.Address = "$G$69" Then Range("H70").Select
End Sub
je cherche le moyen pour descendre directement en cellule decaler directement en cellule si une valeur 0 est mise dans la plage $F$21:$f$31
merci du coup de main par avance
le fichier parleras mieux que de long discours en attendant je continue mes recherche ,je suis arrive a ce niveau ma selection des cellules a saisir
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$D$3" Then Range("H3").Select
If Target.Address = "$H$3" Then Range("G5").Select
If Target.Address = "$G$18" Then Range("F19").Select
If Target.Address = "$F$19" Then Range("f21").Select
If Target.Address = "$F$21" Then Range("G21").Select
If Target.Address = "$G$21" Then Range("F22").Select ' si 21=0 aller directement en F32
If Target.Address = "$F$22" Then Range("G22").Select
If Target.Address = "$G$22" Then Range("F23").Select
If Target.Address = "$F$23" Then Range("G23").Select
If Target.Address = "$G$23" Then Range("F24").Select
If Target.Address = "$F$24" Then Range("G24").Select
If Target.Address = "$G$24" Then Range("F25").Select
If Target.Address = "$F$25" Then Range("G25").Select
If Target.Address = "$G$25" Then Range("F26").Select
If Target.Address = "$F$26" Then Range("G26").Select
If Target.Address = "$G$26" Then Range("F27").Select
If Target.Address = "$F$27" Then Range("G27").Select
If Target.Address = "$G$27" Then Range("F28").Select
If Target.Address = "$F$28" Then Range("G28").Select
If Target.Address = "$G$28" Then Range("F29").Select
If Target.Address = "$F$29" Then Range("G29").Select
If Target.Address = "$G$29" Then Range("F30").Select
If Target.Address = "$F$30" Then Range("G30").Select
If Target.Address = "$G$30" Then Range("F31").Select
If Target.Address = "$F$31" Then Range("G31").Select
If Target.Address = "$G$31" Then Range("F32").Select
If Target.Address = "$F$32" Then Range("F36").Select
If Target.Address = "$F$36" Then Range("G43").Select
If Target.Address = "$G$43" Then Range("G45").Select 'si g43 =0 aller directement en H70
If Target.Address = "$G$45" Then Range("G46").Select
If Target.Address = "$G$46" Then Range("G47").Select
If Target.Address = "$G$47" Then Range("G48").Select
If Target.Address = "$G$69" Then Range("H70").Select
End Sub
je cherche le moyen pour descendre directement en cellule decaler directement en cellule si une valeur 0 est mise dans la plage $F$21:$f$31
merci du coup de main par avance
Pièces jointes
Dernière édition: