Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Sorting sheet problem

Is it possible to sort a worksheet with out actually making it the active
sheet?

The sheets name is "dayoptions" and I want to sort column a into ascending
order

Thanks in advance

Greg


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Sorting sheet problem

Sure. Something like:

With Worksheets("dayoptions")
.Range("A1:A1000").Sort Key1:=.Range("A1")
End With

--

Vasant



"browie" wrote in message
...
Is it possible to sort a worksheet with out actually making it the active
sheet?

The sheets name is "dayoptions" and I want to sort column a into ascending
order

Thanks in advance

Greg



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Sorting sheet problem

Thank you exactly what i needed

Greg
"Vasant Nanavati" <vasantn AT aol DOT com wrote in message
...
Sure. Something like:

With Worksheets("dayoptions")
.Range("A1:A1000").Sort Key1:=.Range("A1")
End With

--

Vasant



"browie" wrote in message
...
Is it possible to sort a worksheet with out actually making it the active
sheet?

The sheets name is "dayoptions" and I want to sort column a into
ascending order

Thanks in advance

Greg





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 problem Jack Sons Excel Discussion (Misc queries) 3 June 19th 08 11:07 PM
Problem with sorting Panos Excel Discussion (Misc queries) 2 October 10th 07 12:15 PM
automatic column sorting problem when protecting sheet Montana Excel Worksheet Functions 3 May 17th 07 09:55 AM
Problem created by sorting linked sheet Becks Excel Discussion (Misc queries) 2 May 2nd 06 12:28 PM
Copied empty cells, give sorting problem in Data sheet Ruud[_2_] Excel Programming 0 September 16th 04 04:44 AM


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