I am looking for a macro that will delete the entire row if the "B" cell is empty, thanks in advance.
Cell A Cell B
server1 "C:\Windows
server1 (delete this row)
I am looking for a macro that will delete the entire row if the "B" cell is empty, thanks in advance.
Cell A Cell B
server1 "C:\Windows
server1 (delete this row)
Last edited by stangz71; 07-28-2011 at 05:12 PM.
Try something like this and report back:
![]()
Please Login or Register to view this content.
It works great but would it be possible to shift the cells up so that it only leaves one row between the next row with data?
As it stands, it shouldn't leave any empty rows. Do you want it to leave any empty row? Would it be better to just clear the contents out of the entire row instead of actually deleting the row?
For some reason it is leaving empty rows and just deleting the data from the cells. Ultimately, it would be nice to have something like the example below, one row between each cell with data. If this is too much, no worries, I appreciate the help you have given me so far.
server1 C:\Windows
(empty row)
server2 E:\TI\
(empty row)
server3 C:\Word_Documents
(empty row)
server4 E:\Backup
Last edited by stangz71; 07-28-2011 at 04:47 PM.
Could you possibly post a sample of your workbook (use dummy data if necessary; also, I don't have Excel 2007, so xls format is needed)?
I'd have no problems adding empty rows between your data, although I generally advise against doing so. Empty rows can make analysis more complicated. If you still do need blank rows, I modify the code once I've seen your workbook.
BigBas
I just tested this on a different spreadsheet and realized that it does exactly what I need. The spacing is even across the cells and that is what I needed. Not sure why the spacing wasn't even on the first spreadsheet but it works fine now. Thanks again for your help.
Not a problem stangz. Let us know if anything needs to be changed in the future.
Definitely, thanks.
BigBas
Could you assist me with an outstanding request on the forum. If this is not possible, please let me know, thanks.
http://www.excelforum.com/excel-prog...omparison.html
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks