• DİKKAT

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

tarih ekleme

sinnernekolens

Altın Üye
Katılım
23 Temmuz 2009
Mesajlar
310
Excel Vers. ve Dili
Ofis 2019 - Türkçe 64bit
Arkadaşlar bu koda nasıl tarih ve saat ekleyebilirim? Her döviz çekmesinde tarih saat atmasını istiyorum altına.
birde (.ClearContents) bu kod yüzünden alt sütünlardaki bilgileri siliyor galiba nasıl düzeltebilirim

Kod:
Sub dovizz()
Dim hucre As Range
[r:t].ClearContents
    With ActiveSheet.QueryTables.Add(Connection:="URL;http://www.tcmb.gov.tr/yeni/tablolar.php", Destination:=[r2])
        .WebFormatting = xlWebFormattingNone
        .WebTables = "4"
        .Refresh BackgroundQuery:=False
    End With
    For Each hucre In [s4:t5]
    hucre = hucre / 10000
    Next
    [s4:t5].NumberFormat = "General"
End Sub
 
Deneyiniz.:cool:
Kod:
Sub dovizz()
Dim hucre As Range
[r2:t5].ClearContents
    With ActiveSheet.QueryTables.Add(Connection:="URL;http://www.tcmb.gov.tr/yeni/tablolar.php", Destination:=[r2])
        .WebFormatting = xlWebFormattingNone
        .WebTables = "4"
        .Refresh BackgroundQuery:=False
    End With
    For Each hucre In [s4:t5]
    hucre = hucre / 10000
    Next
    Range("T2").Value = Now
    Range("T1").NumberFormat = "dd.mm.yyyy hh:mm:ss"
    [s4:t5].NumberFormat = "General"
End Sub
 
Hepinize selamlar, yukarıdaki kodda, butonu sayfa1'e ekleyip bilgileri sayfa2'ye aktarmasını istiyorum yardımlarınızı rica ederim
 
Geri
Üst