LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default are default values possible for "Application.Dialogs(xlDialogSortSpecial).show "?


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
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
Change default settings of "Save external links values" mkollman Excel Discussion (Misc queries) 0 December 7th 08 01:47 PM
default "Show calculated members from OLAP server" on in Excel 200 FurmanGG Excel Discussion (Misc queries) 0 February 28th 08 04:57 AM
Application.Dialogs(xlDialogPrint).Show - prints too soon Almagg via OfficeKB.com Excel Discussion (Misc queries) 3 April 27th 07 08:17 PM
"Window Trails" showing with Dialogs honestman Excel Programming 1 August 12th 05 09:27 PM
Problems with application.Dialogs(xlDialogFormulaFind).Show lydya Excel Programming 2 December 18th 04 05:02 PM


All times are GMT +1. The time now is 01:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"