smtazulislam
Member
- Local time
- Today, 15:32
- Joined
- Mar 27, 2020
- Messages
- 808
Hi, I using the google chrome browser. I would like to do if I click to whatsApp button then It is open chrome browser directly where I already opened a TAB.
But I facing every click open new tab in chrome browser. Also If I using the Gchrome as Object then get error.
How do I fix it.
Noted : Daily 40-50 whatsApp replying every single days. Same message just replace EmployeeID and NID Numbers. every click it was opened new tab with attached pciture.
Any help will be appreciate.
But I facing every click open new tab in chrome browser. Also If I using the Gchrome as Object then get error.
How do I fix it.
Noted : Daily 40-50 whatsApp replying every single days. Same message just replace EmployeeID and NID Numbers. every click it was opened new tab with attached pciture.
Any help will be appreciate.
Code:
Option Compare Database
Option Explicit
Private Sub cmdWhatsApp_Click()
'Format : https://wa.me/whatsappphonenumber?text=urlencodedtext where whatsappphonenumber
'Dim Gchrome As Object
Dim strInput As String
Dim strMyNumbers As String
'Set Gchrome = CreateObject("chrome.Application")
strMyNumbers = "0096*******21"
strInput = "https://web.whatsapp.com/strMyNumbers"
Application.FollowHyperlink strInput, , True
'Set Gchrome = Nothing
End Sub