Vous utilisez un navigateur obsolète. Il se peut que ce site ou d'autres sites Web ne s'affichent pas correctement. Vous devez le mettre à jour ou utiliser un navigateur alternatif.
Boostez vos compétences Excel avec notre communauté !
Rejoignez Excel Downloads, le rendez-vous des passionnés où l'entraide fait la force.
Apprenez, échangez, progressez – et tout ça gratuitement !
👉 Inscrivez-vous maintenant !
Private Sub CommandButton1_Click()
If range("B1:AA1").Value = "a" Then
range("B3:AA3").Value = "a"
else
If range("B1:AA1").Value = "b" Then
range("B3:AA3").Value = "b"
else
If range("B1:AA1").Value = "" Then
range("B3:AA3").Value = ""
end if
end if
end if
end sub
Private Sub CommandButton1_Click()
If Range("B1:AA1").Value = "a" Then
Range("B3:AA3").Value = "a"
ElseIf Range("B1:AA1").Value = "b" Then
Range("B3:AA3").Value = "b"
ElseIf Range("B1:AA1").Value = "" Then
Range("B3:AA3").Value = ""
End If
End If
End If
End Sub
Ça veut rien dire de plus mais maintenant je parle martien 😎
Private Sub CommandButton1_Click()
Dim oCel As Range, oColl As New Collection
With Range("B1:AA1")
On Error Resume Next
For Each oCel In .Cells: oColl.Add CStr(oCel.Value), CStr(oCel.Value): Next
On Error GoTo 0
If oColl.Count = 1 And oColl(1) = "a" Or oColl(1) = "b" Or oColl(1) = "" Then .Copy [B3]
End With
End Sub
- Navigue sans publicité - Accède à Cléa, notre assistante IA experte Excel... et pas que... - Profite de fonctionnalités exclusives Ton soutien permet à Excel Downloads de rester 100% gratuit et de continuer à rassembler les passionnés d'Excel. Je deviens Supporter XLD