LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default how do i learn to write excel macros?

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
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
what is the best book to learn macros indepth excel macros Excel Discussion (Misc queries) 4 April 19th 10 04:26 PM
Best way to learn/use macros? punter Excel Discussion (Misc queries) 3 June 5th 06 12:36 PM
I want to learn Macros in excel, please let me know about it Gharshana New Users to Excel 1 February 9th 06 12:36 PM
How do I learn to write Visual Basic into an Excel Macro? LeonSingreyScott Excel Programming 2 January 10th 06 12:16 AM
Best place to learn about macros fonzerelli_79 Excel Programming 2 May 26th 04 03:34 PM


All times are GMT +1. The time now is 02:42 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"