• DİKKAT

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

Web'te veri eklerken girilen veriyi algılamaması

Katılım
13 Temmuz 2016
Mesajlar
613
Excel Vers. ve Dili
Excel 2010 & 2016 Türkçe
Merhabalar Aşağıdaki kod ile web teki tarihi değiştirdiğimde tarih yerine yazılıyor ama tablo tarihe göre değişmiyor. istediğim tarihteki tablo gelmiyor.
Kod:
Sub Fill_Form()
    Set ie = CreateObject("InternetExplorer.Application")
 
    With ie
        .Visible = True
        .navigate URL:="https://www.mardineczaciodasi.org.tr/Nobet"
   With ie
       
        Do Until .readyState = 4
            DoEvents
        Loop
   
          Set mytextfield2 = .document.all.Item("baslangic")
        mytextfield2.Value = "2018-12-20"
    End With
End With
End Sub
 
Son düzenleme:
Aşağıdaki şekilde deneyin bir.
Kod:
Sub Fill_Form()
    Set IE = CreateObject("InternetExplorer.Application")
 
   With IE
        .Visible = True
        .navigate URL:="https://www.mardineczaciodasi.org.tr/Nobet"
       
        Do Until .readyState = 4
            DoEvents
        Loop
        gun = 19
        ay = Month(Date)
        yil = Year(Date)
        tarih = DateSerial(yil, ay, gun) '"20.12.2018"
        .Document.getElementById("baslangic").Value = Format(tarih, "yyyy-mm-dd")
        .Document.getElementById("baslangic").Focus
        Set tags = IE.Document.getElementsByClassName("day")
For Each tagx In tags
    If tagx.innertext = CStr(gun) Then
        tagx.Click
        Exit For
    End If
Next

End With
End Sub
 
Aşağıdaki şekilde deneyin bir.
Kod:
Sub Fill_Form()
    Set IE = CreateObject("InternetExplorer.Application")

   With IE
        .Visible = True
        .navigate URL:="https://www.mardineczaciodasi.org.tr/Nobet"
      
        Do Until .readyState = 4
            DoEvents
        Loop
        gun = 19
        ay = Month(Date)
        yil = Year(Date)
        tarih = DateSerial(yil, ay, gun) '"20.12.2018"
        .Document.getElementById("baslangic").Value = Format(tarih, "yyyy-mm-dd")
        .Document.getElementById("baslangic").Focus
        Set tags = IE.Document.getElementsByClassName("day")
For Each tagx In tags
    If tagx.innertext = CStr(gun) Then
        tagx.Click
        Exit For
    End If
Next

End With
End Sub


Teşekkürler.
 
Geri
Üst