Guzzlr
Well-known Member
- Joined
- Apr 20, 2009
- Messages
- 982
- Office Version
- 2021
- Platform
- Windows
Code:
LastRow = Range("M:M").Cells.Find("*", _
SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
LastRow = .Range("M" & .Rows.Count).End(xlUp).Row
For i = 9 To LastRow
If Application.IsNA(Cells(i, "M")) Then
If Cells(i, "M").Value = Null Then
Range("M:N").Delete
'Stop
End If
Hello All,
A little help please.
I'm having trouble with finding empty cells and deleting the empty cells, and moving them up. For example, going row-by-row, in column M, if the cells in column M values is null, then the cells of M:N in that particular row, would be deleted and moved up.
I keep getting a warning for using the word "Row"
can someone tell me where my code is wrong?
Thank you
Last edited: