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?

VulpesRank #55 · 29.2K reputationPosted Feb 17, 2013, 11:57 AM EST
VulpesRank #55 · 29.2K reputationPosted Feb 16, 2013, 1:16 AM EST
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?
richard smithRank #8,268 · 225 reputationPosted Feb 16, 2013, 4:21 AM EST
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.
VulpesRank #55 · 29.2K reputationPosted Feb 16, 2013, 11:17 AM EST
richard smithRank #8,268 · 225 reputationPosted Feb 16, 2013, 11:42 AM EST
VulpesRank #55 · 29.2K reputationPosted Feb 16, 2013, 2:25 PM EST
richard smithRank #8,268 · 225 reputationPosted Feb 16, 2013, 5:26 PM EST