I have written a small bit of VBA to allow me to have a button on the front worksheet to refresh the Data Model.
The code looks like this;
Sub Button2_Click()
ActiveWorkbook.Model.Refresh
End Sub
There are occasions where a fault in the data means that this will fail. if I do the refresh through the 'Manage' Screen I can see the error, and correct it.
Is there anyway of detecting if the above has failed, and at least alert the user there was a problem?
(Arguably the data should not be able to get into a state which would cause this to fail, but it does. Detecting the error, and manually fixing it is probably an easier solution for the time being).
Thanks
The code looks like this;
Sub Button2_Click()
ActiveWorkbook.Model.Refresh
End Sub
There are occasions where a fault in the data means that this will fail. if I do the refresh through the 'Manage' Screen I can see the error, and correct it.
Is there anyway of detecting if the above has failed, and at least alert the user there was a problem?
(Arguably the data should not be able to get into a state which would cause this to fail, but it does. Detecting the error, and manually fixing it is probably an easier solution for the time being).
Thanks