- Katılım
- 9 Aralık 2006
- Mesajlar
- 134
- Excel Vers. ve Dili
- microsoft office professional plus 2010 TR
Asagidaki kodu o yilin aylarini "01.2016" seklinde c10 hucresinden baslayarak c21 de "12.2016" bitecek sekilde bir döngü olusturnak istedim ancak sadece c10 "12.2016" seklinde yazip birakiyor. Hata nerde olabilir.
Kod:
Private sub aylar()
For k= 1 to 12
For m=10 to 21
Cells(m,3)=format(dateserial(year(date),k,1),"mm.yyyy")
Next m
Next k
End sub
