- Katılım
- 12 Mayıs 2016
- Mesajlar
- 386
- Excel Vers. ve Dili
- Ofis 2019- 32 Bit - Türkçe
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Kenarlik_Ekle()
Dim SonSatir As Integer
Dim sut As Integer
Dim sonsut As Integer
Dim i As Integer
Cells.Borders.LineStyle = 0
SonSatir = Range("a65536").End(xlUp).Row
sonsut = 0
For i = 2 To SonSatir
sut = Cells(i, Columns.Count).End(xlToLeft).Column
sonsut = WorksheetFunction.Max(sut, sonsut)
Next
Range(Cells(2, "A"), Cells(SonSatir, sonsut)).Borders.LineStyle = 1 'ince çizgi eklemek için
Range(Cells(2, "A"), Cells(SonSatir, sonsut)).BorderAround _
ColorIndex:=1, Weight:=xlThick 'Genel kalın çizgi
Range(Cells(2, "A"), Cells(2, sonsut)).BorderAround _
ColorIndex:=1, Weight:=xlThick 'ilk satır kalın çizgi
Range(Cells(2, "A"), Cells(2, sonsut)).Font.Bold = True 'kalın yapar
End Sub
Sub Kenarlik_Ekle()
Dim SonSatir As Integer
SonSatir = Range("a65536").End(xlUp).Row
Range("a2:n" & SonSatir + 1).Borders.LineStyle = 1 'ince çizgi eklemek için
Range("a2:n" & SonSatir + 1).BorderAround _
ColorIndex:=1, Weight:=xlThick 'Genel kalın çizgi
Range("a2:k2").BorderAround _
ColorIndex:=1, Weight:=xlThick 'ilk satır kalın çizgi
Range("A2:n2").Font.Bold = True 'kalın yapar
End Sub