Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 281
Default VBA sort does not work

Hi,

i have code below to sort a range in my worksheet but it doesn't work
however i can sort it by manually

Sheets(1).Range("A" & Trim(Str(strt)) & ":Q" & Trim(Str(endd -
1))).Select
Selection.Sort Key1:=Range("A" & Trim(Str(strt))),
Order1:=xlAscending, _
Header:=xlYes, OrderCustom:=1, MatchCase:=False, Orientation:= _
xlTopToBottom, DataOption1:=xlSortNormal,
DataOption2:=xlSortNormal, _
DataOption3:=xlSortNormal

i am stock on this problem please help.

Thanks,

--
Farhad Hodjat
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
I can't get sort to work I can't get sort to work Excel Discussion (Misc queries) 4 August 27th 07 01:00 PM
How to sort protected worksheet in Excel 07? Doesn't work. jbachaud Excel Worksheet Functions 1 June 1st 07 06:43 PM
Excel sort application should work with Project WBS Ribas Excel Worksheet Functions 1 February 10th 06 04:10 PM
how do i sort a proceted work sheet David Law Excel Worksheet Functions 1 January 31st 06 05:38 PM
Sort data from 1 work sheet into another andrewgwatson Excel Worksheet Functions 0 June 1st 05 03:10 AM


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