Hi guys
So I have a macro which imports a text file to excel. The text files are made up of individual tables that each end with the word "END"
What I am now trying to do is get another macro running that detects every instance of "END" and then puts a continuous border along the bottom of that entire row.
My current code is
However this code only puts the border under the cell actually containing "END". How can I amend this to select the whole row
Thanks
So I have a macro which imports a text file to excel. The text files are made up of individual tables that each end with the word "END"
What I am now trying to do is get another macro running that detects every instance of "END" and then puts a continuous border along the bottom of that entire row.
My current code is
Code:
Sub EndBorder()
Set Borderrange = Range("A3:AS1000")
For Each Cell In Borderrange
If Cell.Value = "END" Then Cell.Borders(xlEdgeBottom).LineStyle = xlContinuous
Next Cell
End Sub
However this code only puts the border under the cell actually containing "END". How can I amend this to select the whole row
Thanks