ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Alerts in sorting (https://www.excelbanter.com/excel-programming/354220-alerts-sorting.html)

[email protected]

Alerts in sorting
 
When I try to sort my data using the
Application.Dialogs(xlDialogSort).Show, I get an alert telling me that
some of my data is number as text and ask me for an option.

How can I programmatically avoid this alert?

Application.DisplayAlerts=False doesn't work


Tom Ogilvy

Alerts in sorting
 
Don't use the dialog.

use the sort method in code and set the parameters you want.


Turn on the macro recorder and do the sort manually. Then turn off the
macro recorder and look at the recorded code. If you run it, the dialog
(nor the prompt) will be shown.
--
Regards,
Tom Ogilvy


wrote in message
oups.com...
When I try to sort my data using the
Application.Dialogs(xlDialogSort).Show, I get an alert telling me that
some of my data is number as text and ask me for an option.

How can I programmatically avoid this alert?

Application.DisplayAlerts=False doesn't work





All times are GMT +1. The time now is 12:17 AM.

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