I have the following working code that uses Internet Explorer ..
Sub Translate()
Dim ie As Object
Dim html As Variant
Dim lngto As String
Dim i As Long
Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = 0
lngto = "en"
For i = 1 To Cells(Rows.Count, 1).End(xlUp).Row
If Not IsEmpty(Cells(i, 1)) Then
ie.navigate "https://translate.google.com/#ar/" & lngto & "/" & Range("A" & i).Value
Do Until ie.readyState = 4: DoEvents: Loop
Application.Wait (Now + TimeValue("00:00:02"))
Range("B" & i).Value = ie.document.querySelector(".translation").innerText
End If
Next i
ie.Quit
Set ie = Nothing
MsgBox "Done...", 64
End Sub
How can I use XMLHTTP to get the results faster ..? Or Google doesn't more support using such approaches Thanks advanced for help
** Louis solution was perfect and it works only for the first time but after a while I got this result
<!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN>
<html>
<head><meta http-equiv=content-type content=text/html; charset=utf-8><meta name=viewport content=initial-scale=1><title>https://translate.google.com/translate_a/t?client=s&text=%D8%A8%D8%B3%D9%85%20%D8%A7%D9%84%D9%84%D9%87&hl=en&sl=ar&tl=en&multires=1&pc=0&rom=1&sc=1</title></head>
<body style=font-family: arial, sans-serif; background-color: #fff; color: #000; padding:20px; font-size:18px; onload=e=document.getElementById('captcha');if(e){e.focus();}>
<div style=max-width:400px;>
<hr noshade size=1 style=color:#ccc; background-color:#ccc;><br>
<div style=font-size:13px;>
Our systems have detected unusual traffic from your computer network. Please try your request again later. <a href=# onclick=document.getElementById('infoDiv0').style.display='block';>Why did this happen?</a><br><br>
<div id=infoDiv0 style=display:none; background-color:#eee; padding:10px; margin:0 0 15px 0; line-height:1.4em;>
This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the <a href=//www.google.com/policies/terms/>Terms of Service</a>. The block will expire shortly after those requests stop.<br><br>This traffic may have been sent by malicious software, a browser plug-in, or a script that sends automated requests. If you share your network connection, ask your administrator for help — a different computer using the same IP address may be responsible. <a href=//support.google.com/websearch/answer/86640>Learn more</a><br><br>Sometimes you may see this page if you are using advanced terms that robots are known to use, or sending requests very quickly.
</div><br>
IP address: 156.212.29.90<br>Time: 2019-10-12T08:56:47Z<br>URL: https://translate.google.com/translate_a/t?client=s&text=%D8%A8%D8%B3%D9%85%20%D8%A7%D9%84%D9%84%D9%87&hl=en&sl=ar&tl=en&multires=1&pc=0&rom=1&sc=1<br>
</div>
</div>
</body>
</html>