Looking for sample code that would allow me to kill any modal dialog present in Excel

M

Michael

Hi there,

Looking for sample code that would allow me to kill any modal dialog present
in Excel while executing my macro (my macro refreshes some PivotTables every
X seconds using the Timer object). Assuming PivotTable refresh failed at
some point a modal dialog is present hence Refresh can not occur again and
eventually Excel shuts down.

What I want is sample code to first check if there is any modal dialog
present and then do whatever code I need to do.

Thanks
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top