Döngü İle Kodu Kısaltma

ahmed_ummu

Altın Üye
Katılım
28 Mart 2011
Mesajlar
731
Excel Vers. ve Dili
Excel 2010 Professional Plus 64 Bit
Altın Üyelik Bitiş Tarihi
15-10-2026
Merhaba arkadaşlar

Aşağıdaki kodu döngü ile nasıl kısaltabilirim. Yardımcı olursanız sevinirim.

SonSatir = lb.Cells(Rows.Count, "F").End(3).Row
lb.Cells(SonSatir + 3, 2).Font.Size = 10
lb.Cells(SonSatir + 4, 2).Font.Size = 10
lb.Cells(SonSatir + 5, 2).Font.Size = 10
lb.Cells(SonSatir + 3, 3).Font.Size = 10
lb.Cells(SonSatir + 4, 3).Font.Size = 10
lb.Cells(SonSatir + 5, 3).Font.Size = 10
lb.Cells(SonSatir + 3, 5).Font.Size = 10
lb.Cells(SonSatir + 4, 5).Font.Size = 10
lb.Cells(SonSatir + 5, 5).Font.Size = 10
 

veyselemre

Özel Üye
Katılım
9 Mart 2005
Mesajlar
3,646
Excel Vers. ve Dili
Pro Plus 2021
Kod:
    With lb.Cells(Rows.Count, "F").End(3)
        .Offset(3, -4).Resize(3, 2).Font.Size = 10
        .Offset(3, -1).Resize(3).Font.Size = 10
    End With
 

ahmed_ummu

Altın Üye
Katılım
28 Mart 2011
Mesajlar
731
Excel Vers. ve Dili
Excel 2010 Professional Plus 64 Bit
Altın Üyelik Bitiş Tarihi
15-10-2026
Üst