- Katılım
- 12 Kasım 2007
- Mesajlar
- 327
- Excel Vers. ve Dili
- excel 2003
Sayın üstadlarım iliştirdiğim kodla sıralanan satırlardan belirlediğim A1 ile Ax ("x " sonu belli olmayan satır numarası satırlarında mesela A sütunu ile H sutununda bulunan hücreler çizgi ile çerçevelensin istiyorum. son satırdaki veri silindiğinde son satırdaki çerçevede silinecek. Yani sadece içinde veri bulunan satırdaki hücreler çerçeveli olacak.
yardımlarınız için peşinen teşekkür ederim.
sıralama makrom:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [d:d]) Is Nothing Then Exit Sub
Dim i As Long, sr As Long
[A2:A500].ClearContents
For i = 2 To [D500].End(3).Row
If Not Cells(i, 4) = "" Then
sr = sr + 1
Cells(i, 1) = sr
End If
Next
End Sub
çizgi makrom:
With Range("B1:B" & [B65536].End(3).Row).Borders
.LineStyle = xlContinuous
.ColorIndex = 1
.Weight = xlThin
End With
bu iki makro entegre edilecek
yardımlarınız için peşinen teşekkür ederim.
sıralama makrom:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [d:d]) Is Nothing Then Exit Sub
Dim i As Long, sr As Long
[A2:A500].ClearContents
For i = 2 To [D500].End(3).Row
If Not Cells(i, 4) = "" Then
sr = sr + 1
Cells(i, 1) = sr
End If
Next
End Sub
çizgi makrom:
With Range("B1:B" & [B65536].End(3).Row).Borders
.LineStyle = xlContinuous
.ColorIndex = 1
.Weight = xlThin
End With
bu iki makro entegre edilecek
Son düzenleme: