#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel macro

I have a table in Excel that I would lke to search column
A and delete all rows where the cell in column A is empty.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Excel macro

The easiest way is to use
Select column A
Edit Go To Special Blanks
than Delete entire rows.
That is providing that the cells are truely empty and don't have a
formula...
You can record this and than use it again.

A trickier way is to do an Advanced filter with the criteria 0
Select column A
Edit Go To Special Visible cells
Copy
Paste on a new sheet

The hard way is to loop through code.

--
sb
"lowe_family (remove this) @msn.com"
wrote in message ...
I have a table in Excel that I would lke to search column
A and delete all rows where the cell in column A is empty.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default Excel macro

Sub DeleteBlanks()
'' Deletes all rows that have blanks in Column A .
Columns("A").SpecialCells(xlCellTypeBlanks).Entire Row.Delete
End Sub

HTH
Paul
-------------------------------------------------------------------------------
I have a table in Excel that I would lke to search column
A and delete all rows where the cell in column A is empty.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 3 February 5th 07 08:22 PM
passing arguments from an excel macro to a word macro KWE39 Excel Discussion (Misc queries) 1 July 7th 05 03:56 PM


All times are GMT +1. The time now is 12:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"