Please let me know Suppress No Data to fetch error in Deski. I have to data providers & two prompts are also there. If i use below macro, its SUPPRESSING prompts also.
Dim DP As DataProvider
Private Sub Document_BeforeRefresh(Cancel As Boolean)
Set DP = ActiveDocument.DataProviders(1)
Application.Interactive = False
DP.Refresh
Application.Interactive = True
End Sub
Is there any other way to hide the no data message.
I didn’t try it at least once. But if that is the case, you can then go for the fourth way of suppressing the no data message. i.e. by displaying User defined message.