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?
 
Katılım
18 Nisan 2007
Mesajlar
2,053
Excel Vers. ve Dili
Access 2019
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]
 

Orion1

Uzman
Uzman
Katılım
1 Mart 2005
Mesajlar
22,254
Excel Vers. ve Dili
Win7 Home Basic TR 64 Bit

Ofis-2010-TR 32 Bit
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
 
Üst