Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting Rows
Does anyone have any suggestions for a code that will look at column A and if any cell is blank in column A then delete the entire row? Any help would be greatly appreciated. Thanks! -- STEVEB ------------------------------------------------------------------------ STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872 View this thread: http://www.excelforum.com/showthread...hreadid=491829 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting Rows
on error resume next
activesheet.range("a:a").cells.specialcells(xlcell typeblanks).entirerow.delete on error goto 0 STEVEB wrote: Does anyone have any suggestions for a code that will look at column A and if any cell is blank in column A then delete the entire row? Any help would be greatly appreciated. Thanks! -- STEVEB ------------------------------------------------------------------------ STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872 View this thread: http://www.excelforum.com/showthread...hreadid=491829 -- Dave Peterson |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting Rows
Thanks Dave! That worked perfect!! -- STEVE ----------------------------------------------------------------------- STEVEB's Profile: http://www.excelforum.com/member.php...nfo&userid=187 View this thread: http://www.excelforum.com/showthread.php?threadid=49182 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting Rows
Sub DeleteRows()
On Error Resume Next columns(1).Specialcells(xlBlanks).EntireRow.Delete End sub -- Regards, Tom Ogilvy "STEVEB" wrote in message ... Does anyone have any suggestions for a code that will look at column A and if any cell is blank in column A then delete the entire row? Any help would be greatly appreciated. Thanks! -- STEVEB ------------------------------------------------------------------------ STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872 View this thread: http://www.excelforum.com/showthread...hreadid=491829 |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting Rows
Thanks Tom, I appreciate your hel -- STEVE ----------------------------------------------------------------------- STEVEB's Profile: http://www.excelforum.com/member.php...nfo&userid=187 View this thread: http://www.excelforum.com/showthread.php?threadid=49182 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro for deleting rows and serialising the remaing rows | Links and Linking in Excel | |||
Macro for deleting rows and serialising the remaing rows | Setting up and Configuration of Excel | |||
Macro for deleting rows and serialising the remaing rows | Excel Worksheet Functions | |||
Help!! I have problem deleting 2500 rows of filtered rows!!!! | Excel Discussion (Misc queries) | |||
deleting hidden rows so i can print only the rows showing?????? | Excel Worksheet Functions |