Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Sorting rows (left to right) programmatically

In message
at 22:46:36 on Thu, 19 Oct 2006, Mike
S wrote
Worksheets("INPUT").Cells("A1:I2").Sort _
key1:=Worksheets("INPUT").Range("A1"), _
key2:=Worksheets("INPUT").Range("A2"), _
Orientation:=xlSortRows

I don't know if the internal compiler got into a mess, but I've retyped
it as follows and it works

Worksheets("INPUT").Range("A1:P2").Sort _
Key1:=Worksheets("INPUT").Range("A1"), _
Key2:=Worksheets("INPUT").Range("A2"), _
Orientation:=xlSortRows
--
Mike
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
Sorting rows left to right numerically Carlton A. Barlow Excel Worksheet Functions 1 December 2nd 07 12:40 AM
Sorting rows (left to right) programmatically Mike[_111_] Excel Programming 0 October 20th 06 09:05 AM
Sorting rows (left to right) programmatically Mike[_111_] Excel Programming 0 October 20th 06 09:04 AM
Sorting Right to Left Kaiser Excel Worksheet Functions 1 October 18th 06 02:30 AM
Sorting rows programmatically Michael Monteiro Excel Programming 1 September 3rd 03 03:52 PM


All times are GMT +1. The time now is 07:31 PM.

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"