• DİKKAT

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

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ı?
 
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
 
Aşağıdaki linkte hazırlamış olduğum bir TCMB sitesinden kurları çeken dosyamı paylaşıyorum.

TCMB KURLAR
 
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?
 
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....


.
 
Geri
Üst