Hi,
What is ur SP? The above syntax is for SP 13 and above, if you are using SP lower than 13 then there is an additional parameter fileName.
In case you are using SP lower than 13, then try the following code and see if it works:
Dim epm As New FPMXLClient.EPMAddInAutomation
Sub Button7_Click()
epm.DataManagerRunPackage "PACKAGE TO EXECUTE SCRIPT LOGIC", "OTHER FUNCTION", "",""
End Sub
Alternatively, it would be better if you move to newer SP as lot of bugs got fixed with each higher release of SP.
Regards,
Kalyan.