Hi,
I am developing a macro that has to send data of several Reports in loop, without the user interaction. For that I activated the 'HideSubmitWarning' through the SetUserOption. The problem is that once I send the data and I have a failure, the program doesn't go on and the user doesn't know why. So I must show the user which was the problem.
I would like to ask if there is any way of getting the result of a 'Save*Data' by macro of if I have a way to validate the data by macro before sending.
Thank you in advance,
** CODE **
'Book1
Sub main_function()
'Opens Book2
'Book2.Refresh
End Sub
'Book2
Function AFTER_REFRESH()
Application.Run "EPMExecuteAPI ", "SetUserOption", "HideSubmitWarning", True
Application.Run "EPMExecuteAPI ", "SaveAndRefreshWorkbookData"
AFTER_REFRESH = True
End Function
Function AFTER_SEND()
Application.Run "Book1!main_function
AFTER_SEND = True
End Function