View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ordnance1 ordnance1 is offline
external usenet poster
 
Posts: 52
Default Selecting a worksheet without making it active

How can I change my code below so the sort will perform without making
AAA-Supervisor the active shett?

Sheets("AAA-Supervisor").Select
range(Y2:Z24").Select
Selection.Sort Key1:=range("y4"). Order1:=x;Ascending, Header:=xlGuese, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom,_
DataOption1:=xlSortNormal