Sub Bordrr()
Dim uRR As Range
'
Set uRR = Application.Intersect(ActiveSheet.UsedRange, Range("A:AJ"))
For I = 1 To uRR.Rows.Count
If Application.WorksheetFunction.CountA(Application.WorksheetFunction.Index(uRR, I, 0)) > 0 Then
With Application.WorksheetFunction.Index(uRR, I, 0).Borders
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
Else
Application.WorksheetFunction.Index(uRR, I, 0).Borders.LineStyle = xlNone
End If
Next I
End Sub