Merhabalar,
Elimde bir excel tablosu ve makro mevcut.Fakat bu makro A SUTUNUndaki verilere göre işlem yapıyor. Bu makroyu c sutunundaki verilere göre güncellemek istiyorum. Yardımcı olabilirmiisniz.
Elimde bir excel tablosu ve makro mevcut.Fakat bu makro A SUTUNUndaki verilere göre işlem yapıyor. Bu makroyu c sutunundaki verilere göre güncellemek istiyorum. Yardımcı olabilirmiisniz.
Kod:
Sub ÇERÇEVE_KENARLIK_BRN()
Columns("A:S").Borders.LineStyle = xlNone: son = [A65536].End(3).Row
With Range("A1:S" & son).Borders: .LineStyle = xlContinuous: .ColorIndex = 16: .Weight = xlThin: End With
For brn = 2 To [A65536].End(3).Row
ilk = WorksheetFunction.Match(Cells(brn, 1), Range("A1:A" & [A65536].End(3).Row), 0)
son = ilk + WorksheetFunction.CountIf(Range("A1:A" & [A65536].End(3).Row), Cells(brn, 1)) - 1
alan = "A" & ilk & ":S" & son: Range(alan).Select
With Selection.Borders(xlEdgeLeft): .LineStyle = xlContinuous: .ColorIndex = 0: .Weight = xlMedium: End With
With Selection.Borders(xlEdgeTop): .LineStyle = xlContinuous: .ColorIndex = 0: .Weight = xlMedium: End With
With Selection.Borders(xlEdgeBottom): .LineStyle = xlContinuous: .ColorIndex = 0: .Weight = xlMedium: End With
With Selection.Borders(xlEdgeRight): .LineStyle = xlContinuous: .ColorIndex = 0: .Weight = xlMedium: End With
brn = son: Next: Cells(1, 1).Activate: MsgBox "KENARLIKLAR TAMAM"
End Sub
