brightyoyo
New Member
Hi
I have a Macro that lets me delete an entire row based on the beginning letter of a specified cell. However, I just need to delete two specific cells in that row not the entire row.
End If[/code]
Next LR[/code]
Application.ScreenUpdating = True[/code]
I just need the cells in column D and E To be deleted.
Thank You
I have a Macro that lets me delete an entire row based on the beginning letter of a specified cell. However, I just need to delete two specific cells in that row not the entire row.
Code:
Dim LR As Long
[code]Application.ScreenUpdating = False
[code]For LR = Range("D" & Rows.Count).End(xlUp).Row To 2 Step -1
[code]If Range("D" & LR).Value = "" Or Left(Range("D" & LR), 1) = "M" Then
Rows(LR).EntireRow.Delete
End If[/code]
Next LR[/code]
Application.ScreenUpdating = True[/code]
I just need the cells in column D and E To be deleted.
Thank You