Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Francine
 
Posts: n/a
Default sort in excel (office xp)

I am trying to get column H to sort as the others are doing using a
macro (see below).
Using the CTRL + H function I get the find and replace feature popping
up. How do I get it to sort properly using CTRL + H?
Based on the same formula my other columns d-g sort properly. Any
advice is appreciated.

Sub Macro5()
'
' Macro1 Macro
' Macro created 06/09/2006

' Keyboard Shortcut: Ctrl+h
'
Range("C13:H58").Select
Range("H13").Activate
Selection.Sort Key1:=Range("H13"), Order1:=xlDescending,
Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("G7").Select
End Sub

  #2   Report Post  
Posted to microsoft.public.excel.misc
Allllen
 
Posts: n/a
Default sort in excel (office xp)

Francine

As you have seen, lots of those CTRL+A,B,C combinations are reserved for
shortcuts.

Why don't you set them all (or just this one?) to work with CTRL+SHIFT+A,B,C
etc?
Those aren't reserved at least until you get to O (I tried them).
You must have had the same problem with column F.
--
Allllen


"Francine" wrote:

I am trying to get column H to sort as the others are doing using a
macro (see below).
Using the CTRL + H function I get the find and replace feature popping
up. How do I get it to sort properly using CTRL + H?
Based on the same formula my other columns d-g sort properly. Any
advice is appreciated.

Sub Macro5()
'
' Macro1 Macro
' Macro created 06/09/2006

' Keyboard Shortcut: Ctrl+h
'
Range("C13:H58").Select
Range("H13").Activate
Selection.Sort Key1:=Range("H13"), Order1:=xlDescending,
Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("G7").Select
End Sub


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
Office XP SP3 interfering w/ Excel shannie5236 Excel Discussion (Misc queries) 0 October 11th 05 04:00 AM
Excel needs to let the user set the sort default to "NO HEADER ROW subtleone Excel Worksheet Functions 0 October 8th 05 05:55 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
I want to sort selected cells in Excel, not entire rows. Aeryn635 Excel Discussion (Misc queries) 1 June 1st 05 07:58 PM
Installed Word XP only, then applied Office SP3, then Excel - need 2 re-update? Maged Excel Discussion (Misc queries) 0 March 5th 05 10:37 PM


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