Forum Discussion
Lorenzo Kim
Jun 18, 2018Bronze Contributor
vba to suppress subtotal prompt
When I used DATA>subtotal to remove all , a prompt (see below) always appears, can I suppress it with vba to default as OK so that it will not show? many thanks
Lorenzo Kim
Jul 10, 2018Bronze Contributor
I found an article to suppress prompt by using:
Application.DisplayAlerts = False
then revert it to True afterwards.
This of course should only be done if all issues have been addressed.
thanks
JKPieterse
Jul 10, 2018Silver Contributor
I agree, this is a catch-all approach which is not the best way to address the above issue. It *is* useful in some other cases however.
- Lorenzo KimJul 10, 2018Bronze Contributor
thank you