• DİKKAT

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

bir sonraki ayın lk günü

Katılım
23 Ağustos 2008
Mesajlar
14
Excel Vers. ve Dili
Excel 2002
Türkçe
meerhaba
rapora bir sonraki ayın ilk gününün tarihini nasıl yazdırabilirim?
 
Merhaba..

Alternatif olarak DateSerial fonksiyonundan da faydalanabiliriz..

Kod:
[COLOR=#008000]=[/COLOR][COLOR=#0600ff]DateSerial[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0600ff]Year[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0600ff]Date[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR];Month[COLOR=#000000]([/COLOR][COLOR=#0600ff]Date[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR][COLOR=#008000]+[/COLOR][COLOR=#7d2252]1[/COLOR];[COLOR=#7d2252]1[/COLOR][COLOR=#000000])[/COLOR]
 
Bende bir fonksiyon yazayım bari.:D
Kod:
Function sonraki_ay(tarih As Date) As Date
    sonraki_ay = DateSerial(Year(tarih), Month(tarih) + 1, 1)
End Function
Kullanımı:
Kod:
Sub test()
MsgBox sonraki_ay(Date)
End Sub
 
Geri
Üst