- Katılım
- 16 Haziran 2007
- Mesajlar
- 56
- Excel Vers. ve Dili
- 2003 türçe
excel 2003 te çalışmıyor hata nerede acaba
bağlantıda bir sorun var ama bir türlü çözemedim
Sub dovizkurlaritarihsec()
Dim tarih As Date, yilay As String, gun As String
tarih = Application.InputBox(prompt:="kur tarih?", Type:=1)
yilay = Format(tarih, "yyyymm")
gun = Format(tarih, "ddmmyyyy")
On Error GoTo hata
With ActiveSheet.QueryTables.Add(Connection:= _
"http://www.tcmb.gov.tr/kurlar/" & yilay & "/" & gun & ".html", _
Destination:=Range("A1"))
.WebPreFormattedTextToColumns = False
.RefreshStyle = xlOverwriteCells
.WebSelectionType = xlEntirePage
.Refresh backgroundqurey:=False
End With
MsgBox Replace(Mid(Range("a13"), 42, 7), ".", ",", 2, 1)
hata: If Err Then MsgBox gun & "tarihine ait kur yok"
End Sub
bağlantıda bir sorun var ama bir türlü çözemedim
Sub dovizkurlaritarihsec()
Dim tarih As Date, yilay As String, gun As String
tarih = Application.InputBox(prompt:="kur tarih?", Type:=1)
yilay = Format(tarih, "yyyymm")
gun = Format(tarih, "ddmmyyyy")
On Error GoTo hata
With ActiveSheet.QueryTables.Add(Connection:= _
"http://www.tcmb.gov.tr/kurlar/" & yilay & "/" & gun & ".html", _
Destination:=Range("A1"))
.WebPreFormattedTextToColumns = False
.RefreshStyle = xlOverwriteCells
.WebSelectionType = xlEntirePage
.Refresh backgroundqurey:=False
End With
MsgBox Replace(Mid(Range("a13"), 42, 7), ".", ",", 2, 1)
hata: If Err Then MsgBox gun & "tarihine ait kur yok"
End Sub
