Sheets için güncel kur tabloları

Katılım
22 Mayıs 2023
Mesajlar
5
Excel Vers. ve Dili
2016
Merhabalar,

Sheets üzerinde güncel kurları görebileceğim ve veri girdiğimde karşısına kur karılıklarını çıkartan bir sheets'e ihtiyacım var.
Merkez bankası ve google ayrı iki tablo olsa çok güzel olur.

Konusu var mış fakat tablolar silinmiş o yüzden erişemedim.

Nasıl yapabilirim ya da yardımcı olabilecek biri var mı?
 
Katılım
20 Şubat 2012
Mesajlar
242
Excel Vers. ve Dili
office2007 Türkçe
Deneyin..
Kod:
Sub Doviz_TCMB()

    Sheets.Add After:=ActiveSheet
    Application.CutCopyMode = False
    With ActiveSheet.QueryTables.Add(Connection:= _
        "URL;https://www.tcmb.gov.tr/kurlar/today.xml", Destination:=Range("$A$1"))
        '.CommandType = 0
        .Name = "today"
        .FieldNames = True
        .RowNumbers = False
        .FillAdjacentFormulas = False
        .PreserveFormatting = True
        .RefreshOnFileOpen = False
        .BackgroundQuery = True
        .RefreshStyle = xlInsertDeleteCells
        .SavePassword = False
        .SaveData = True
        .AdjustColumnWidth = True
        .RefreshPeriod = 0
        .WebSelectionType = xlSpecifiedTables
        .WebFormatting = xlWebFormattingNone
        .WebTables = "1"
        .WebPreFormattedTextToColumns = True
        .WebConsecutiveDelimitersAsOne = True
        .WebSingleBlockTextImport = False
        .WebDisableDateRecognition = False
        .WebDisableRedirections = False
        .Refresh BackgroundQuery:=False
    End With
    Range("A1:G24").Select

    With Selection
        .HorizontalAlignment = xlCenter
        .VerticalAlignment = xlBottom
        
    End With
    Range("A1:G24").Borders(xlInsideHorizontal).LineStyle = XlLineStyle.xlContinuous
    Range("A1").Select
End Sub
 

Levent Menteşoğlu

Administrator
Yönetici
Admin
Katılım
13 Ekim 2004
Mesajlar
16,057
Excel Vers. ve Dili
Excel 2010-32 bit-Türkçe
Excel 365 -32 bit-Türkçe
Aşağıdaki linkte hazırlamış olduğum bir TCMB sitesinden kurları çeken dosyamı paylaşıyorum.

TCMB KURLAR
 
Katılım
22 Mayıs 2023
Mesajlar
5
Excel Vers. ve Dili
2016
Deneyin..
Kod:
Sub Doviz_TCMB()

    Sheets.Add After:=ActiveSheet
    Application.CutCopyMode = False
    With ActiveSheet.QueryTables.Add(Connection:= _
        "URL;https://www.tcmb.gov.tr/kurlar/today.xml", Destination:=Range("$A$1"))
        '.CommandType = 0
        .Name = "today"
        .FieldNames = True
        .RowNumbers = False
        .FillAdjacentFormulas = False
        .PreserveFormatting = True
        .RefreshOnFileOpen = False
        .BackgroundQuery = True
        .RefreshStyle = xlInsertDeleteCells
        .SavePassword = False
        .SaveData = True
        .AdjustColumnWidth = True
        .RefreshPeriod = 0
        .WebSelectionType = xlSpecifiedTables
        .WebFormatting = xlWebFormattingNone
        .WebTables = "1"
        .WebPreFormattedTextToColumns = True
        .WebConsecutiveDelimitersAsOne = True
        .WebSingleBlockTextImport = False
        .WebDisableDateRecognition = False
        .WebDisableRedirections = False
        .Refresh BackgroundQuery:=False
    End With
    Range("A1:G24").Select

    With Selection
        .HorizontalAlignment = xlCenter
        .VerticalAlignment = xlBottom
       
    End With
    Range("A1:G24").Borders(xlInsideHorizontal).LineStyle = XlLineStyle.xlContinuous
    Range("A1").Select
End Sub
Eyvallah hocam bunu sheets'de yapabilir miyim?
 

Haluk

Özel Üye
Katılım
7 Temmuz 2004
Mesajlar
12,406
Excel Vers. ve Dili
64 Bit 2010 - İngilizce
+
Google Sheets
+
JScript
Altın Üyelik Bitiş Tarihi
Kod:
=IMPORTXML("https://www.tcmb.gov.tr/kurlar/today.xml","//Currency")

Google Sheets ayarlarınız Türkçe ise virgül yerine noktalı virgül kullanın....


.
 
Üst