Julie-F
XLDnaute Occasionnel
Bonjour à tous
Les post sur les doublons sont nombreux et bien qu'ayant trouvé un sujet qui correspond en partie (la recherche de doublons en ce qui me concerne porte sur 2 onglets differents) à mon probleme
https://www.excel-downloads.com/threads/eviter-ou-alerter-les-doublons-dans-un-colonne.98413/
Je n'arrive pas à faire cohabiter les instructions placées dans Private Sub Worksheet_Change
Avec celles déjà présentes dans mon fichier, à savoir :
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect([B8:B1000], Target) Is Nothing And Target.Count = 1 Then
Application.EnableEvents = False
ncol = 19
[B65000].End(xlUp).Offset(1, 0).Resize(1, ncol).Select
ActiveSheet.Unprotect Password:="www"
Selection.Offset(-1, 0).Copy ActiveCell
On Error Resume Next
Target.EntireRow.RowHeight = 20
Selection.SpecialCells(xlCellTypeConstants, 23).ClearContents
ActiveCell.Offset(0, -1).Copy ActiveCell.Offset(1, -1)
ActiveCell.Offset(1, -1).ClearContents
ActiveSheet.Protect Password:="www"
Application.EnableEvents = True
End If
End Sub
Quelqu'un pourrait il m'aider à combiner ces instructions ou dois-je revoir l'ensemble de mon fichier ?
Je joins un debut de fichier ne pouvant mettre en ligne le fichier original.
http://cjoint.com/?jpopEVXFTu
Les post sur les doublons sont nombreux et bien qu'ayant trouvé un sujet qui correspond en partie (la recherche de doublons en ce qui me concerne porte sur 2 onglets differents) à mon probleme
https://www.excel-downloads.com/threads/eviter-ou-alerter-les-doublons-dans-un-colonne.98413/
Je n'arrive pas à faire cohabiter les instructions placées dans Private Sub Worksheet_Change
Avec celles déjà présentes dans mon fichier, à savoir :
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect([B8:B1000], Target) Is Nothing And Target.Count = 1 Then
Application.EnableEvents = False
ncol = 19
[B65000].End(xlUp).Offset(1, 0).Resize(1, ncol).Select
ActiveSheet.Unprotect Password:="www"
Selection.Offset(-1, 0).Copy ActiveCell
On Error Resume Next
Target.EntireRow.RowHeight = 20
Selection.SpecialCells(xlCellTypeConstants, 23).ClearContents
ActiveCell.Offset(0, -1).Copy ActiveCell.Offset(1, -1)
ActiveCell.Offset(1, -1).ClearContents
ActiveSheet.Protect Password:="www"
Application.EnableEvents = True
End If
End Sub
Quelqu'un pourrait il m'aider à combiner ces instructions ou dois-je revoir l'ensemble de mon fichier ?
Je joins un debut de fichier ne pouvant mettre en ligne le fichier original.
http://cjoint.com/?jpopEVXFTu