Bonsoir le forum, la macro ci dessous répond à mes besoins, même si c'est certain elle n'est bien écrite
, mais j'ai besoin d'ajouter une autre condition, pourriez vous m'aidez svp
	
	
	
	
	
		
condition à ajouter :
If Range("U29") < Range("V29") Then
activeSheet.Range("D11") = ""
mais cela engendre un bug car incompatible avec la dernière condition ou on demande de remplir D21 avec D50 si on modifie H21 et je suis incapable de combiner les 2 conditions
un grand merci et bonne soirée
	
		
			
		
		
	
				
			, mais j'ai besoin d'ajouter une autre condition, pourriez vous m'aidez svp
		VB:
	
	
	Private Sub Worksheet_Change(ByVal Target As Range)
  On Error Resume Next
   If Range("D11") = "" Then
   ActiveSheet.Shapes("Rectangle 26").Visible = False
   Else
   ActiveSheet.Shapes("Rectangle 26").Visible = True
  End If
     If Range("U29") < Range("V29") Then
   ActiveSheet.Shapes("Groupe 38").Visible = False
  End If
  On Error GoTo 0
 If Target.Count > 1 Then Exit Sub
 If Target.Address <> "$H$21" Then Exit Sub
   If Target.Value = "" Then Exit Sub
    If Not Intersect(Target, Range("H21")) Is Nothing Then
        Me.Cells(21, "D").Value = Me.Cells(50, "D").Value
    End If
end subIf Range("U29") < Range("V29") Then
activeSheet.Range("D11") = ""
mais cela engendre un bug car incompatible avec la dernière condition ou on demande de remplir D21 avec D50 si on modifie H21 et je suis incapable de combiner les 2 conditions
un grand merci et bonne soirée
			
				Dernière édition: 
			
		
	
								
								
									
	
		
			
		
		
	
	
	
		
			
		
		
	
								
							
							 
	 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		