Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Fred" wrote...
You could also simply use the following code after export: Range("A:A").SpecialCells(xlCellTypeBlanks).Entir eRow.Delete It deletes all the rows in which the cells in column A are blank. ... True, but simple interactive approaches are also handy. My sorting approach isn't optimal. Better would be inserting a row (a blank row) above the .TXT file data, selecting the entire worksheet, running Data Filter AutoFilter, selecting (Blank) in the column A dropdown, pressing [Shift]+[SpaceBar] to select entire rows, then Edit Delete to delete the rows in which column A is blank. Note that the approach above isn't general. If CSV or any other form of structured text files with delimited fields had empty first fields but nonempty subsequent fields, this approach would delete such records/rows. The sorting approach I suggested guards against that possibility. -- To top-post is human, to bottom-post and snip is sublime. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I want the autofill/drag function to skip empty cells | Excel Discussion (Misc queries) | |||
paste special / skip empty cells doesn't work!? | Excel Worksheet Functions | |||
Formula returns empty; chart plots zero; I want to skip | Charts and Charting in Excel | |||
How to skip empty cells while running a macro? | Excel Programming | |||
Skip empty and text cells | Excel Programming |