Sub cmdSend()
Dim IE As Object
Dim strPhoneNumber As String ' caisse
Dim strMessage As String
strPhoneNumber = Sheets("whatsapp").Range("B2").Value
strMessage = Sheets("whatsapp").Range("A2").Value '
Set IE = CreateObject("InternetExplorer.Application")
IE.navigate "whatsapp://send?phone=" & strPhoneNumber & "&text=" & strMessage
Application.Wait Now() + TimeSerial(0, 0, 3)
Call SendKeys("{ENTER}", True)
Set IE = Nothing
'Je cherche un code qui reduit whatsapp le code ci-dessous ne marche pas
On Error Resume Next
Application.Wait Now() + TimeSerial(0, 0, 1)
AppActivate "Excel"
On Error GoTo 0
End Sub