Sheets(Sheets.Count).Name = s2.[a1]
hatası alıyorum kod tamamı altta nerde deişiklik yapmam gerek
veriyi aldıgım site
http://www.tjk.org/Tjk.Public.Web_v2/S/S/KosuTarihi.aspx?atKodu=15399&popUp=1&l=1
iyi akşamlar
Sub webtenverial()
Set s1 = Sheets("Ana Sayfa")
Application.ScreenUpdating = False
For a = 1 To [a65536].End(3).Row
Sheets.Add
Sheets(1).Move After:=Sheets(Sheets.Count)
Set s2 = Sheets(Sheets.Count)
With s2.QueryTables.Add(Connection:="URL;" & s1.Cells(a, "a"), Destination:=s2.[a1])
.WebFormatting = xlWebFormattingNone
.WebTables = """table4"",""table5"""
.Refresh BackgroundQuery:=False
End With
s2.[k:l].Delete
s2.[a:j].ColumnWidth = 12
Sheets(Sheets.Count).Name = s2.[a1]
s1.Activate
Next
End Sub
hatası alıyorum kod tamamı altta nerde deişiklik yapmam gerek
veriyi aldıgım site
http://www.tjk.org/Tjk.Public.Web_v2/S/S/KosuTarihi.aspx?atKodu=15399&popUp=1&l=1
iyi akşamlar
Sub webtenverial()
Set s1 = Sheets("Ana Sayfa")
Application.ScreenUpdating = False
For a = 1 To [a65536].End(3).Row
Sheets.Add
Sheets(1).Move After:=Sheets(Sheets.Count)
Set s2 = Sheets(Sheets.Count)
With s2.QueryTables.Add(Connection:="URL;" & s1.Cells(a, "a"), Destination:=s2.[a1])
.WebFormatting = xlWebFormattingNone
.WebTables = """table4"",""table5"""
.Refresh BackgroundQuery:=False
End With
s2.[k:l].Delete
s2.[a:j].ColumnWidth = 12
Sheets(Sheets.Count).Name = s2.[a1]
s1.Activate
Next
End Sub