944,066 Members | Top Members by Rank

Ad:
Apr 2nd, 2006
0

Deleting Rows in excel

Expand Post »
hello all
i m using VB 6 for automating excel. My data contains some blank rows, which i need to get rid of. can anyone tell me how to do it.
help wud be appreciated.
thanks.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Robert06 is offline Offline
2 posts
since Apr 2006
Apr 2nd, 2006
0

Re: Deleting Rows in excel

If you know the row, you can use objectreference.EntireRow.Delete (objectreference is a reference to a range, I think). Or something like: xlApp.ActiveSheet.Range("2:10").Rows.Delete, might work for you. First you'll need to loop through and make sure the row in question is in fact blank, and then just run a delete on it. This reference might be of some help: http://msdn.microsoft.com/library/de...HV03076813.asp
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Apr 2nd, 2006
0

Re: Deleting Rows in excel

thanks for the reply.. the problem is i dont know which rows are blank. but i m sure that there are many blank rows in the data.
looking forward to suggestions and helps.
thanks.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Robert06 is offline Offline
2 posts
since Apr 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Dynamic Connection String Using ADO
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Stopping Hardware





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC