- Katılım
- 2 Mayıs 2008
- Mesajlar
- 295
- Excel Vers. ve Dili
- Office 365
Halit hocam sadece belirli hücreleri çevirip, yeni çeviriyi üzerine yazmak istiyorrsak nasıl yapabiliriz? 2-3 hücre için örnek verebilir misiniz?
Teşekkürler
Teşekkürler
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Sub verial2()
Dim URL As String, IE As Object, Alan As Range, veri1 As Variant
URL = "https://translate.google.com.tr/#auto/tr"
Set IE = CreateObject("InternetExplorer.Application")
IE.Width = 100
IE.Height = 100
IE.Left = 10 '250
IE.Top = 0
IE.navigate URL
IE.Visible = 1
Do Until IE.ReadyState = 4: DoEvents: Loop
Do While IE.Busy: DoEvents: Loop
Application.Wait (Now + TimeValue("00:00:01"))
'On Error Resume Next
For Each Alan In Selection
IE.document.all("source").Value = Alan.Value
Application.Wait (Now + TimeValue("00:00:01"))
Do Until IE.ReadyState = 4: DoEvents: Loop
Do While IE.Busy: DoEvents: Loop
Application.Wait (Now + TimeValue("00:00:01"))
veri1 = IE.document.getElementsByTagName("span")(23).InnerText
If veri1 = "Çeviri" Then
veri1 = IE.document.getElementsByTagName("span")(24).InnerText
End If
If veri1 = "Çevriliyor..." Then
veri1 = IE.document.getElementsByTagName("span")(25).InnerText
End If
Alan.Value = veri1
Next
IE.Quit: Set IE = Nothing
MsgBox ("Bitti")
End Sub