Hi,
I have a very small validation requirement that I need to perform just before refreshing the Input Form and it is working as per my requirement.
But when I am saving the data from Input Form, again that Before_refresh event is triggering which I don't need.
VBA Code:
Function BEFORE_REFRESH()
If Application.ActiveSheet.Name = "Input Sheet - PM_Annual Budget" Then
answer = MsgBox("Are you sure you want to Refresh the Input Form? Unsaved data will be lost !!", vbYesNo + vbQuestion, "EPM Refresh Data")
If answer = 6 Then
'Conitnure refreshing
Else
BEFORE_REFRESH = False
End If
End If
End Function
Please suggest why before_refresh event is triggering after clicking on save button and how to stop it.
Regards,
Bharat