• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

şifreli giriş ile login olup Giriş botunana bastırmak

tahsinanarat

Altın Üye
Katılım
14 Mart 2005
Mesajlar
2,181
Excel Vers. ve Dili
Ofis 2019 Türkçe
https://tts.turkiyeshell.com/Default.aspx?act=login sitesine aşağıdaki kod ile kullanıcı adı ve şifre girişini yaptırabiliyorum, ancak giriş butonuna tıklamam için nasıl bir kod yazılmalıdır
Kod:
Sub login()
    With CreateObject("InternetExplorer.Application")
        .Visible = True
        .navigate "https://tts.turkiyeshell.com/Default.aspx?act=login"

        Do Until .ReadyState = 4: DoEvents: Loop
        Do While .Busy: DoEvents: Loop

        .document.all.MainContent_UCLogin1_tbCCode_I.Value = [b2]
        .document.all.MainContent_UCLogin1_tbUName_I.Value = [b3]
        .document.all.MainContent_UCLogin1_tbPaswd_I.Value = [b4]
        'giriş butonuna tıklaması için nasıl bir kod yazabilirim.
End With
End Sub
 
Deneme yaparak sorun çözüldü
Kod:
Sub login()
    With CreateObject("InternetExplorer.Application")
        .Visible = True
        .Navigate "https://tts.turkiyeshell.com/Default.aspx?act=login"

        Do Until .ReadyState = 4: DoEvents: Loop
        Do While .Busy: DoEvents: Loop

        .Document.all.MainContent_UCLogin1_tbCCode_I.Value = [a1]
        .Document.all.MainContent_UCLogin1_tbUName_I.Value = [b1]
        .Document.all.MainContent_UCLogin1_tbPaswd_I.Value = [c1]
        .Document.all.ctl00_MainContent_UCLogin1_btnLogin_CD.Click
        End With
With CreateObject("InternetExplorer.Application")
        .Visible = True
        .Navigate "https://tts.turkiyeshell.com/Limits/LimitsAll.aspx"
        
End With
Set IE = Nothing
Set HTML_Body = Nothing
End Sub
 
Geri
Üst