Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
PM PM is offline
external usenet poster
 
Posts: 7
Default Open the Sort dialog box

How do I open the Sort dialog box using VBA?
Excel 2000.

Thanks
Pete


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Open the Sort dialog box

Hi,

You can sort from Vb without using the dialog box, perhaps it would be best
if you explained what you are trying to sort.

Mike

"PM" wrote:

How do I open the Sort dialog box using VBA?
Excel 2000.

Thanks
Pete



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Open the Sort dialog box

Sub aSortedAffair()
SendKeys "%d"
SendKeys "~"
DoEvents
End Sub


May not work for 2007
--
Gary''s Student - gsnu200777


"PM" wrote:

How do I open the Sort dialog box using VBA?
Excel 2000.

Thanks
Pete



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default Open the Sort dialog box

Hi,

If you really must display the dialog then

application.Dialogs(xlDialogSort).Show

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"PM" wrote in message
...
How do I open the Sort dialog box using VBA?
Excel 2000.

Thanks
Pete



  #5   Report Post  
Posted to microsoft.public.excel.programming
PM PM is offline
external usenet poster
 
Posts: 7
Default Open the Sort dialog box


"PM" wrote in message
...
How do I open the Sort dialog box using VBA?
Excel 2000.


Thanks for all the replies.

I want the user to be able to sort a large named area where many cells are
blank. Simply opening the Sort dialog box does not always select the correct
region due to the blank areas, so the macro selects the named area first.

I went with Andy's suggestion in the end.




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
Adding more sort fields to the SORT Dialog Box Doug V. Excel Discussion (Misc queries) 3 October 6th 08 07:30 PM
Retaining Sort order in the Sort Dialog box CBittinger Excel Discussion (Misc queries) 2 January 9th 08 05:01 PM
Excel Open Dialog Improper Sort [email protected] Excel Discussion (Misc queries) 4 May 17th 06 02:40 PM
Second window open as a sort of dialog Claus[_3_] Excel Programming 2 August 5th 05 11:41 AM
control of dialog macro dialog box. on open Gerry Abbott Excel Programming 0 July 22nd 04 05:41 PM


All times are GMT +1. The time now is 12:31 PM.

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"