LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Sort a row of strings, some containing blanks

I am trying to sort a row, some cells contains strings and others
blanks. Range = "B18" to "AY18"
The "SORT" below does nothing! Can anyone see why?

---------
Private Sub Workbook_Open()

Dim OldRange As Range

Set OldRange = Worksheets("Variables").Range("FA_budget_lines")
OldRange.Sort 'Key1:=OldRange(1), Order1:=xlAscending, _ Header:=xlNo,
Orientation:=xlSortColumns

'some more code goes here...

End Sub

 
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
Use Formula to sort two strings Ray Ray Excel Worksheet Functions 2 January 15th 08 12:37 PM
HOW DO YOU SORT EXCEL FILE WITH BLANKS Terry Millican Excel Worksheet Functions 1 July 26th 06 02:42 AM
How do I sort a list that contains blanks that I want to keep? SHexceluser Excel Discussion (Misc queries) 5 October 14th 05 10:27 PM
Can I remove blanks from a range without using sort? Hugh Murfitt Excel Discussion (Misc queries) 6 March 8th 05 08:37 AM
how do I reset the default sort order in excel xp back to blanks . MardiL Excel Discussion (Misc queries) 2 February 24th 05 08:15 PM


All times are GMT +1. The time now is 03:37 AM.

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"