Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My guess is that it has too many limitations, being restricted to
column A and without regard to rest of cells on the row. But the question is too ambiguous anyway. Some more examples of deleting cells and rows in Delete Cells/Rows in Range, based on empty cells, or cells with specific values http://www.mvps.org/dmcritchie/excel/delempty.htm Can't read the example but I think the interest is probably in deleting rows which would bring you down to the second half of the above. As for the subject title you might look at some VBA tutorials on my page http://www.mvps.org/dmcritchie/excel....htm#tutorials and also you would want to write code that runs quickly as opposed to just working http://www.mvps.org/dmcritchie/excel/proper.htm http://www.mvps.org/dmcritchie/excel/slowresp.htm --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "Mike Q." wrote... Does this help? Sub NoBlanksAligLeft() Columns("A:A").SpecialCells(xlCellTypeBlanks).Sele ct Selection.Delete Shift:=xlUp Columns("A:A").HorizontalAlignment = xlLeft End Sub -- Mike Q. "excel macro" wrote: How do i delete blank cells and align properly through macro? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
what is the best book to learn macros indepth | Excel Discussion (Misc queries) | |||
Best way to learn/use macros? | Excel Discussion (Misc queries) | |||
I want to learn Macros in excel, please let me know about it | New Users to Excel | |||
How do I learn to write Visual Basic into an Excel Macro? | Excel Programming | |||
Best place to learn about macros | Excel Programming |