Hello VBA experts,
I need to delete empty rows in a long list with data however the cells are not completely blank but contain "".
I have tried the following code but it isnot working. Anybody who can advise me how to do it??
Sub deleteR()
Sheet10.Activate
Dim r, n As Range
Set n = Range("A2", Range("A6000").End(xlUp))
For Each r In n
If r.Value = "" Then
r.EntireRow.delete
End If
Next r
End Sub
Thanks !
Joke
I need to delete empty rows in a long list with data however the cells are not completely blank but contain "".
I have tried the following code but it isnot working. Anybody who can advise me how to do it??
Sub deleteR()
Sheet10.Activate
Dim r, n As Range
Set n = Range("A2", Range("A6000").End(xlUp))
For Each r In n
If r.Value = "" Then
r.EntireRow.delete
End If
Next r
End Sub
Thanks !
Joke