This is a snippet of what I have, but I'm looking for another method that won't ruin formatting on a table.
Basically, this method is deleting the row. So if I have a table outline that has borders, and formatting, when it deletes the row, the table gets smaller every time. What I would like to do is clear the row data, and move everything below it up without actually removing the row.
The only method in my head I see working would be to insert a row above the match, and then remove it? Just wondering if there's an easier way.
Code:
Dim es As Worksheet, WSC As Worksheet
Set es = Worksheets("Master Employee List")
Set WSC = Worksheets("Testme")
r = Application.Match(emp, es.Range("A:A"), 0)
es.Rows(r).Delete Shift:=xlUp
i = Application.Match(emp, WSC.Range("B:B"), 0)
WSC.Rows(i).Delete Shift:=xlUp
MsgBox emp
Basically, this method is deleting the row. So if I have a table outline that has borders, and formatting, when it deletes the row, the table gets smaller every time. What I would like to do is clear the row data, and move everything below it up without actually removing the row.
The only method in my head I see working would be to insert a row above the match, and then remove it? Just wondering if there's an easier way.
Last edited: