Excel.Workbook.RefreshAll()
I am using this to refresh some queries in an Excel workbook, but sometimes there is an odbc error or an issue. I know you can count for that in a try/catch block, but I do not want to do that because it will stop processing at the 1st error. Is there a way to set the RefreshAll(); statement with parameters to ignore errors so all data is refreshed in the workbook?
VulpesPosted Feb 17, 2013, 4:57 PM
richard smithPosted Feb 16, 2013, 10:26 PM
VulpesPosted Feb 16, 2013, 7:25 PM
richard smithPosted Feb 16, 2013, 4:42 PM
VulpesPosted Feb 16, 2013, 4:17 PM
richard smithPosted Feb 16, 2013, 9:21 AM
1) A too many client task error -- which I don't know how to get around at all!
2) A GENERAL ODBC ERROR -- which usually just running the refresh command again will get through this type of error.
VulpesPosted Feb 16, 2013, 6:16 AM
The best thing to do is to try and figure out what is causing the error in the first place. What sort of error messages are you getting?