Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi all, Is it possible to provide default values for a user when usin "Application.Dialogs(xlDialogSortSpecial).Show " on a "user interfac only" protected sheet? I'd like to use the following recorded code* to provide default value in the "SortSheet" macro. *Selection.Sort Key1:=Range("B12"), Order1:=xlDescending, Key2:=Range _ "D12"), Order2:=xlDescending, Key3:=Range("E12") Order3:=xlAscending, Header:=xlYes, OrderCustom:=1, MatchCase:=False Orientation:= xlTopToBottom, DataOption1:=xlSortNormal DataOption2:=xlSortNormal, DataOption3:=xlSortNormal Sub SortSheet() 'to allow sheet sorting on the "user interface only" protected sheet requires use of a _ named range "Sort_Area" Range("'" & ActiveWorkbook.Name & "'!Sort_Area").Select Application.Dialogs(xlDialogSortSpecial).Show 'optional MsgBox "Page is sorted as requested." End Sub btw, I have offered the above macro as a suggestion i http://www.excelforum.com/showthread.php?t=501367. thanks in advance, Rob Brockett NZ Always learning & the best way to learn is to experience.. -- broro18 ----------------------------------------------------------------------- broro183's Profile: http://www.excelforum.com/member.php...fo&userid=3006 View this thread: http://www.excelforum.com/showthread.php?threadid=50142 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Change default settings of "Save external links values" | Excel Discussion (Misc queries) | |||
default "Show calculated members from OLAP server" on in Excel 200 | Excel Discussion (Misc queries) | |||
Application.Dialogs(xlDialogPrint).Show - prints too soon | Excel Discussion (Misc queries) | |||
"Window Trails" showing with Dialogs | Excel Programming | |||
Problems with application.Dialogs(xlDialogFormulaFind).Show | Excel Programming |