- Katılım
- 1 Mart 2005
- Mesajlar
- 22,239
- Excel Vers. ve Dili
- Win7 Home Basic TR 64 Bit
Ofis-2010-TR 32 Bit
Merhaba.
Aşağıdaki yazdığım kodlarla web sitesindeki BASKETBOL a tıklamak istiyorum.
Link:
http://betistuta.com/OAF.aspx
Aşağıdaki yazdığım kodlarla web sitesindeki BASKETBOL a tıklamak istiyorum.
Link:
http://betistuta.com/OAF.aspx
Kod:
#If Win64 Then
Private Declare PtrSafe Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
#Else
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
#End If
Kod:
Sub iddia59()
Dim URL As String
Dim i As Long
Dim ie As Object, t, l, chk_ulke, chk_tumu, chk_tkm, chk_lig
Dim x As Variant, sh As Worksheet, k
'On Error Resume Next
Range("A:A").Clear
URL = "http://betistuta.com/OAF.aspx"
Set ie = CreateObject("InternetExplorer.Application")
With ie
.Navigate URL
.Visible = 1
ShowWindow ie.hwnd, 6
Do Until ie.ReadyState = 4: DoEvents: Loop
Do While ie.Busy: DoEvents: Loop
Application.Wait (Now + TimeValue("00:00:03"))
'Set k = ie.Document.getElementsByTagName("table").Item(2)
'Set k = ie.Document.getElementbyid("a.ct100_MainContentFull_Menu1_1.ct100_MainContentFull_Menu1_3")
End With
End Sub
