• DİKKAT

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

makro belirleme sorunu

Katılım
5 Eylül 2007
Mesajlar
1,247
Excel Vers. ve Dili
ofis 2010
Kod:
Sub bicim_temizle1()
Son = Cells(Rows.Count, 1).End(3).Row
Range("A2:L" & Son).ClearContents
End Sub
Sub bicim_temizle2()

Son = Cells(Rows.Count, 1).End(3).Row
Range("A2:L" & Son).Select
Selection.Interior.ColorIndex = xlNone
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
Selection.Borders(xlEdgeLeft).LineStyle = xlNone
Selection.Borders(xlEdgeTop).LineStyle = xlNone
Selection.Borders(xlEdgeBottom).LineStyle = xlNone
Selection.Borders(xlEdgeRight).LineStyle = xlNone
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Sheets("RAPOR").Range("L1").Select
End Sub
iyi günler; iki makro ile , hem içeriği , hemde biçim temizleme yapıyorum, temizlemede sorun yok ama , biçim temizlemede 2.ci satırdan aşağısını biçim temizle dediğim halde 1.ci satırında biçimini temizliyor. Sorunu çözemedim.
 
Merhaba,

Son tanımlaması 1 değerini üretirse 1.satırdan başlar.
Son tanımından sonra aşağıdaki satırı ilave edin.

If son < 2 Then son = 2

.
 
Kod:
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
Selection.Borders(xlEdgeLeft).LineStyle = xlNone
Selection.Borders(xlEdgeTop).LineStyle = xlNone
Selection.Borders(xlEdgeBottom).LineStyle = xlNone
Selection.Borders(xlEdgeRight).LineStyle = xlNone
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Yerine
Kod:
 Selection.Borders().LineStyle = xlNone
Deneyin.
 
Geri
Üst