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

autosort leaving blanks where they are left to right
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default autosort

Hi Anthony,

Try the below code

Sub sortme()
Cells.Select
Selection.Sort Key1:=Range("A2"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
End Sub




"Anthony" wrote:

autosort leaving blanks where they are left to right

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
Autosort in Excel Riley Snyder Excel Discussion (Misc queries) 2 October 12th 09 02:05 PM
Autosort on an Array [email protected] Excel Programming 7 April 20th 07 03:45 PM
autosort pete Excel Worksheet Functions 1 April 25th 06 11:02 PM
AutoSort in VBA tamato43 Excel Discussion (Misc queries) 1 March 30th 05 08:09 AM
Autosort Problem Morpheseus Excel Programming 2 September 13th 03 10:58 PM


All times are GMT +1. The time now is 05:40 AM.

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

About Us

"It's about Microsoft Excel"