Arkadaşlar daha önce de konuyu açtım ancak sonuca ulaşamadım bir türlü. Sorum çok net. Aşağıdaki kod sorunsuz çalışıyor. Ben bu kodun explorer yerine Chrome ile sayfaları açacak şekilde çalışmasını istiyorum. Bu konuda yardımlarınızı bekliyorum. Durum biraz acil şimdiden teşekkürler.
Sorunsuz çalışan ve chrome ile açılacak şekilde düzeltmek istediğim kodu bu:
Private Sub CommandButton2_Click()
Dim URL As String
Dim HTML_Body As Object
Dim IE As Object
URL = "https://uyg.sgk.gov.tr/Sigortali_Tesvik_4447_15/login.jsp"
Set IE = CreateObject("InternetExplorer.Application")
With IE
.Navigate URL
.Visible = True
Do Until IE.readyState = 4: DoEvents: Loop
Do While IE.Busy: DoEvents: Loop
IE.document.all("j_username").Value = Cells(1, "a")
IE.document.all("isyeri_kod").Value = Cells(2, "a")
IE.document.all("j_password").Value = Cells(2, "b")
IE.document.all("isyeri_sifre").Value = Cells(2, "c")
IE.document.all("Submit").Click
End With
Set IE = Nothing
Set HTML_Body = Nothing
End Sub
Sorunsuz çalışan ve chrome ile açılacak şekilde düzeltmek istediğim kodu bu:
Private Sub CommandButton2_Click()
Dim URL As String
Dim HTML_Body As Object
Dim IE As Object
URL = "https://uyg.sgk.gov.tr/Sigortali_Tesvik_4447_15/login.jsp"
Set IE = CreateObject("InternetExplorer.Application")
With IE
.Navigate URL
.Visible = True
Do Until IE.readyState = 4: DoEvents: Loop
Do While IE.Busy: DoEvents: Loop
IE.document.all("j_username").Value = Cells(1, "a")
IE.document.all("isyeri_kod").Value = Cells(2, "a")
IE.document.all("j_password").Value = Cells(2, "b")
IE.document.all("isyeri_sifre").Value = Cells(2, "c")
IE.document.all("Submit").Click
End With
Set IE = Nothing
Set HTML_Body = Nothing
End Sub