If you want to translate the text via Google Translate using VBA . Snapshot below-
Sub transalte_using_vba()
' Tools Refrence Select Microsoft internet Control
Dim ie As Object, i As Long
Dim inputstring As String, outputstring As String, text_to_convert As String, result_data As String, CLEAN_DATA
Set ie = CreateObject("InternetExplorer.application")
' TO CHOOSE INPUT LANGUAGE
If Sheet1.ComboBox1.Value = "Detect" Then
inputstring = "auto"
Else
inputstring = Application.WorksheetFunction.VLookup(Sheet1.ComboBox1.Value, Sheets("Country List").Range("a:b"), 2, 0)
End If
' TO CHOOSE OUTPUT LANGUAGE
If Sheet1.ComboBox2.Value = "English" Then
outputstring = "en"
Else
outputstring = Application.WorksheetFunction.VLookup(Sheet1.ComboBox2.Value, Sheets("Country List").Range("a:b"), 2, 0)
End If
text_to_convert = Sheets("Translator").Range("b6").Value
'open website
ie.Visible = False
Do Until ie.ReadyState = 4
DoEvents
Loop
Application.Wait (Now + TimeValue("0:00:5"))
Do Until ie.ReadyState = 4
DoEvents
Loop
CLEAN_DATA = Split(Application.WorksheetFunction.Substitute(ie.Document.getElementById("result_box").innerHTML, "</SPAN>", ""), "<")
For i = LBound(CLEAN_DATA) To UBound(CLEAN_DATA)
result_data = result_data & Right(CLEAN_DATA(i), Len(CLEAN_DATA(i)) - InStr(CLEAN_DATA(i), ">"))
Next
Sheets("Translator").Range("L6").Value = ""
Sheets("Translator").Range("L6").Value = result_data
ie.Quit
MsgBox "Done", vbOKOnly
End Sub