J
juergenkemeter
Hi!
is there a way in VBA to remove all empty rows in a worksheet
'Sheet1'?
Cheers
Juergen
is there a way in VBA to remove all empty rows in a worksheet
'Sheet1'?
Cheers
Juergen
If, however, column B cannot be used to define empty rows, post back with
more detail.
Norman said:Hi Juergen,
Given, however, Dave's intervening and comprehensive response, that should
be unnecessary.
can I specify a certain range condition for deleting a row, for Dave's
code?
e.g.
If there are no values in Range(Columns A : J), then
delete row
I altered the line, but nothing happens with the lines.
I enclosed an example file - principally, I want to delete all rows in
the Sheet, except rows 1,3,4,5,7,8. All these rows contain values in
column range A to J.
Hi Norman,
thanks, it works. I used the line
If Application.CountA(Cells(iRow, "A").Resize(1, 9)) = 0
Then
than means 1,9 and not 1,10 (10 would mean that it also looks into
column K).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.