Hi,
i have some data and in between having blank rows. i want to delete all rows till my last row with data by having loop through each cell and validating with isempty formula, or any other criteria.
Thanks
Raju
Hi,
i have some data and in between having blank rows. i want to delete all rows till my last row with data by having loop through each cell and validating with isempty formula, or any other criteria.
Thanks
Raju
Do you have a worksheet to post. There are several things to know. For instance is there a range of cells in a row that have to be blank before you want to delete the row, perhaps columns 1 through 9 etc.? Is it just one cell for instance if any cell in column A of a row is empty then delete the entire row?
Hi,
something like this :
Please Login or Register to view this content.
Happy Computing ,
Xlbiznes.
To show your appreciation please click *
Okay may be this what you need:-
Please Login or Register to view this content.
Regards,
Vikas Gautam
Excel-buzz.blogspot.com
Excel is not a matter of Experience, its a matter of Application.
Say Thanks, Click * Add Reputation
Hi,
See attached file. i want the macro code to go through each row in column A until last row with text and delete entire row which are all blanks
Thanks
Raju
Did you tried the offered solutions?
And what is the result on the offered solutions?
Notice my main language is not English.
I appreciate it, if you reply on my solution.
If you are satisfied with the solution, please mark the question solved.
You can add reputation by clicking on the star * add reputation.
Hi,
I have tried this code given.
For x = Me.UsedRange.Rows.Count To 2 Step -1
If Range("a" & x) = "" Then
Rows(x).Delete
End If
Next
but i am getting an error, highlightinhg me.usedrange error.
Then try the solution of Vikas_Gautam.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks