MJaspering
New Member
- Joined
- Oct 2, 2023
- Messages
- 8
- Office Version
- 365
- 2021
- Platform
- Windows
Hey All,
I am attempting to delete an entire row based on a single cell value and have run into some trouble getting it to work. I have done some testing and the (ActiveCell.Row) piece is generating the correct Row Number, but the Row is not being deleted. Any thoughts?
Thanks!
I am attempting to delete an entire row based on a single cell value and have run into some trouble getting it to work. I have done some testing and the (ActiveCell.Row) piece is generating the correct Row Number, but the Row is not being deleted. Any thoughts?
Thanks!
VBA Code:
Do Until IsEmpty(ActiveCell)
If ActiveCell.Value = "TOTAL" Then
Rows(ActiveCell.Row).EntireRow.Delete
End If
ActiveCell.Offset(1, 0).Select
Loop