Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

BEFORE_REFRESH EVENT ISSUE

$
0
0

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


Viewing all articles
Browse latest Browse all 5414

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>