I have a code that will find the Text: "Homemade" in Column, and want to apply an Outside Border to that Row. But how to apply the outside border to only the rows within the Table, not .EntireRow
?
Dim Wb As Workbook
Dim Ws As Worksheet
Dim Tbl As ListObject
Dim Rng As Range ' range in which to set the table
Dim Rl As Long ' last row
Dim Cl As Long ' last column
For Each Ws In ActiveWorkbook.Worksheets
With Ws
If .Index <> 1 Then
'Insert Table with the Data starting in Column A3:M
' find the last used row in column A
Rl = .Cells(.Rows.Count, "A").End(xlUp).Row
' find the last used column in row 3
Cl = .Cells(3, .Columns.Count).End(xlToLeft).Column
' set the range for the table
Set Rng = .Range(.Cells(3, "A"), .Cells(Rl, Cl))
' convert the range to a table
Set Tbl = .ListObjects.Add(xlSrcRange, Rng, , xlYes)
Dim Homemade As Range
Set Homemade = .Range("C:C").Find("HOMEMADE", LookIn:=xlValues, lookat:=xlWhole)
With Homemade
.EntireRow.BorderAround , xlThick, -11489280
End With
End If
End With
Next Ws