Bonsoir à tous, merci pour votre aide.
Pouvez vous me dire pourquoi l'évènement workbook_open ne semble t'il pas apprécier le code :
_____________________________________
Sub workbook_open()
sheets("feuille 1").Select
If Range("A5").Value = "SANS DP" Then
Rows("27:49").Select
Selection.EntireRow.Hiden = True
Else
If Range("A5").Value = "AVEC DP" Then
Rows("27:49").Select
Selection.EntireRow.Hiden = False
End If
End If
End Sub
______________________________________
???????J'ai du mal à saisir, merci si vous pouvez m'aider.
@+
Pouvez vous me dire pourquoi l'évènement workbook_open ne semble t'il pas apprécier le code :
_____________________________________
Sub workbook_open()
sheets("feuille 1").Select
If Range("A5").Value = "SANS DP" Then
Rows("27:49").Select
Selection.EntireRow.Hiden = True
Else
If Range("A5").Value = "AVEC DP" Then
Rows("27:49").Select
Selection.EntireRow.Hiden = False
End If
End If
End Sub
______________________________________
???????J'ai du mal à saisir, merci si vous pouvez m'aider.
@+