Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
My office has just converted us to excel 2010. My lovley spreadsheet macro that made me the envy of the office no longer works and everyone now wants my blood.
The sheet is protected. I have a macro that will select a variable amount of rows and sort alphabetically. It looks for the hidden cell xdummy then selects every row above it up to row 13, then sorts A -Z. Except now it doesn't. Help! Sub Sort() ' ' Sort Macro ' 'Sheets("Cashflow").Unprotect "Cashflow2012" Cells.Find(What:="xdummy", After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _ False, SearchFormat:=False).Activate Rows("13:" & ActiveCell.Row - 1).Select Selection.Sort Key1:=Range("a13"), Order1:=xlAscending, Header:=xlGuess, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal Sheets("Cashflow").Protect "Cashflow2012" End Sub Last edited by GSENSEI : August 31st 12 at 04:06 PM |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2010 to auto-generate an email to recipients in outlook 2010 | Excel Programming | |||
Form 4 Range of time from 1/20/2010 4:00 AM To 1/21/2010 10:00 AM | Excel Worksheet Functions | |||
How do I make an exact copy of my bill work sheets to year 2010 | Excel Discussion (Misc queries) | |||
customer sort order in a marco | Excel Programming |