27.02.2017, 15:38
Seiten: 1 2
27.02.2017, 17:29
Schaue Dir mal mein Makro an und vergleiche:
Gruß Ralf
Code:
Sub EdgeNone()
Dim Zeile As Long
Dim ZeileMax As Long
Dim Text As Variant
With tblTest
Text = "none"
ZeileMax = .UsedRange.Rows.Count
For Zeile = 2 To ZeileMax
If InStr(1, .Range("I" & Zeile).Value, Text, 1) Then
.Range(.Cells(Zeile, "A"), .Cells(Zeile, "S")).Borders(xlEdgeTop).LineStyle = xlContinuous
End If
Next Zeile
End With
End Sub
Gruß Ralf
Seiten: 1 2