Skip to main content

AccessTr.neT


Webrowser1 Komutunu İe İle Kullanma

Webrowser1 Komutunu İe İle Kullanma

#8
Private Sub CommandButton2_Click()

Dim ie As Object
Set ie = CreateObject("internetexplorer.application")

ie.Visible = True

ie.Navigate "https://intvd.gib.gov.tr/internetvd/index.jsp"

Do While ie.Busy Or Not ie.ReadyState = READYSTATE_COMPLETE
DoEvents
Loop

Call ie.Document.parentWindow.execScript("openLoginPopup()", "JavaScript")
   
ie.Visible = False

Set objShell = CreateObject("Shell.Application")
IE_count = objShell.Windows.Count

For x = 0 To (IE_count - 1)

On Error Resume Next

my_url = objShell.Windows(x).Document.Location

   If my_url = "https://intvd.gib.gov.tr/internetvd/dispatch2?cmd=IVD_LOGINPAGE" Then
       Set ie2 = objShell.Windows(x)
       ie2.Visible = False
       
       MsgBox ("Web Sayfasına Aktarım Yapıldı")
   
       ie2.Document.getElementById("username").innerText = Cells(28, "a")
       ie2.Document.getElementById("password2").innerText = Cells(29, "a")
       ie2.Document.getElementById("password1").innerText = Cells(30, "a")
       ie2.Visible = True
'        Exit For
   End If
Next

ie.Quit


End Sub
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
Webrowser1 Komutunu İe İle Kullanma - Yazar: karizmax - 12/06/2018, 00:26
Cvp: Webrowser1 Komutunu İe İle Kullanma - Yazar: ozanakkaya - 21/06/2018, 11:27