ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Open the Sort dialog box (https://www.excelbanter.com/excel-programming/408977-open-sort-dialog-box.html)

PM

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

Thanks
Pete



Mike H

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




Gary''s Student

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




Andy Pope

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




PM

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.




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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com