Bonjour Eric,
J'ai rentré ceci comme code et cela fonctionne.
Private Sub Worksheet_Activate()
Dim DerLig As Integer
Dim DerCol As Integer
Range("A1").Select
'DerLig = Range("A" & Rows.Count).End(xlUp).Row
DerCol = Cells(1, Cells.Columns.Count).End(xlToLeft).Column
Range(Cells(, 1), Cells(, 13)).Select 'à préciser
ActiveWindow.Zoom = True
Application.DisplayFullScreen = True
Range("C5").Select
End Sub
Par contre le souci c'est que j'ai dû rentrer ce code dans chaque feuille alors que je pense que j'aurais pu le rentrer dans le ThisWorkBook. Seul souci c'est que j'ai 3 "modèles" différents.
Voilà ce que j'aurais aimé adapter dans le ThisWorkBook:
- Pour la feuille "Sommaire":
Private Sub Worksheet_Activate()
Dim DerLig As Integer
Dim DerCol As Integer
Range("A1").Select
'DerLig = Range("A" & Rows.Count).End(xlUp).Row
DerCol = Cells(1, Cells.Columns.Count).End(xlToLeft).Column
Range(Cells(, 1), Cells(, 9)).Select 'à préciser
ActiveWindow.Zoom = True
Application.DisplayFullScreen = True
Range("C5").Select
End Sub
- Pour la feuille "Recap":
Private Sub Worksheet_Activate()
Dim DerLig As Integer
Dim DerCol As Integer
Range("A1").Select
'DerLig = Range("A" & Rows.Count).End(xlUp).Row
DerCol = Cells(1, Cells.Columns.Count).End(xlToLeft).Column
Range(Cells(, 1), Cells(, 4)).Select 'à préciser
ActiveWindow.Zoom = True
Application.DisplayFullScreen = True
Range("C5").Select
End Sub
- Pour toutes les feuilles qui commencent par "V":
Private Sub Worksheet_Activate()
Dim DerLig As Integer
Dim DerCol As Integer
Range("A1").Select
'DerLig = Range("A" & Rows.Count).End(xlUp).Row
DerCol = Cells(1, Cells.Columns.Count).End(xlToLeft).Column
Range(Cells(, 1), Cells(, 13)).Select 'à préciser
ActiveWindow.Zoom = True
Application.DisplayFullScreen = True
Range("C5").Select
End Sub
Est-ce que quelqu'un pourrait me venir en aide svp ?
Merci à ceux qui pourront m'aiguiller !
J-Baptiste