Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Sort filtered rows in VBA

Is it possible using VBA to sort only the visible rows
after a filter has been applied? I have tried and get a
message saying the command (ie.Sort) cannot be run with
multiple selections.

For me it would be so much more efficient to sort after
filtering, rather then the other way round.

Any help would be greatly appreciated, as would a
straight "No" answer!

Thanks
Rosemary
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Sort filtered rows in VBA

select the whole filter range (not just visible rows) or select only a
single cell in the data. Worked fine for me. Only the visible rows were
sorted.

--
Regards,
Tom Ogilvy



"RW" wrote in message
...
Is it possible using VBA to sort only the visible rows
after a filter has been applied? I have tried and get a
message saying the command (ie.Sort) cannot be run with
multiple selections.

For me it would be so much more efficient to sort after
filtering, rather then the other way round.

Any help would be greatly appreciated, as would a
straight "No" answer!

Thanks
Rosemary



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Sort filtered rows in VBA

Thanks Tom. This works fine for me too.
-----Original Message-----
select the whole filter range (not just visible rows) or

select only a
single cell in the data. Worked fine for me. Only the

visible rows were
sorted.

--
Regards,
Tom Ogilvy



"RW" wrote in

message
...
Is it possible using VBA to sort only the visible rows
after a filter has been applied? I have tried and get a
message saying the command (ie.Sort) cannot be run with
multiple selections.

For me it would be so much more efficient to sort after
filtering, rather then the other way round.

Any help would be greatly appreciated, as would a
straight "No" answer!

Thanks
Rosemary



.

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
Filtered Sort freezing up FrankG Excel Discussion (Misc queries) 1 April 9th 10 10:56 PM
Cut filtered rows, paste into next empty row of new sheet, and delete cut rows Scott Excel Worksheet Functions 0 December 13th 06 01:25 AM
Help!! I have problem deleting 2500 rows of filtered rows!!!! shirley_kee Excel Discussion (Misc queries) 1 January 12th 06 03:24 AM
How sort filtered file. Rao Ratan Singh New Users to Excel 1 December 26th 05 01:54 PM
Filtered Visible Rows & VBA Non-Filtered Rows Displayed QTE[_15_] Excel Programming 8 July 11th 04 02:21 AM


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