Hello,
I'm looking for a vba that can delete any banks rows from specific column B. Range from B56 to B3500. If any blank cells in this area will be deleted. Appreciate if you can help.
Hello,
I'm looking for a vba that can delete any banks rows from specific column B. Range from B56 to B3500. If any blank cells in this area will be deleted. Appreciate if you can help.
If you just want to remove the contents from cell B then take out ".EntireRow"![]()
Sub DeleteBlanks() Dim letter As Range For Each letter In Range("B1: B3500").SpecialCells(xlCellTypeBlanks) If letter = "" Then letter.EntireRow.ClearContents End If Next letter End Sub
Last edited by LaffyAffy13; 07-23-2013 at 03:37 PM. Reason: Fixed information
~~LaffyAffy13~~
If I have helped you solve your problem, please be sure to clickat the bottom left of my post.
Thanks.
Thank you.
![]()
Sub pelle() Range("B56", Cells(Rows.Count, 2).End(xlUp)).SpecialCells(4).EntireRow.Delete End Sub
Read the question wrong, my code just clears the contents. AB's code does the job correctly. Sorry
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks