titooooo
XLDnaute Occasionnel
bonjour
je veut avoir deux code vba dans la page this workbook
le 1er
Private Sub Workbook_Open()
Dim ws As Worksheet
For Each ws In Worksheets
With ws
.EnableAutoFilter = True
.EnableOutlining = True
.Protect Contents:=True, Password:="123456", UserInterfaceOnly:=True
End With
Next ws
End Sub
et le deuxieme
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Call AjoutCommentaire(Target)
End Sub
comment les mettre les deux ensemble svp
	
		
			
		
		
	
				
			je veut avoir deux code vba dans la page this workbook
le 1er
Private Sub Workbook_Open()
Dim ws As Worksheet
For Each ws In Worksheets
With ws
.EnableAutoFilter = True
.EnableOutlining = True
.Protect Contents:=True, Password:="123456", UserInterfaceOnly:=True
End With
Next ws
End Sub
et le deuxieme
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Call AjoutCommentaire(Target)
End Sub
comment les mettre les deux ensemble svp
			
				Dernière édition: