cancel
Showing results for 
Search instead for 
Did you mean: 

can i put macro that execute after the input template is refresh ?

Former Member
0 Kudos

Hi All,

I created macro to fill certain formula in the cell. The question is, how can i put this macro execute automatic after the input template is refreshed ?

Thanks,

Suprapto

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear All,

I put these line in my module.

Dim EPM As New FPMXLClient.EPMAddInAutomation

Sub AFTER_REFRESH()

< my code >

End Sub

Thanks

Answers (1)

Answers (1)

former_member190501
Active Contributor
0 Kudos

Hi,

Try as follows ...

Dim EPM As New FPMXLClient.EPMAddInAutomation

Sub REFRESH_DATA()

EPM.RefreshActiveSheet

<Insert your code here..to fill formula in the cell >

End Sub

Hope it helps...

regards,

Raju

Former Member
0 Kudos

Hi Raju,

Sorry, i change my question. Is it my macro can execute automatically if user click button refresh from BPC ribbon ?

Thanks,

Suprapto

former_member210696
Active Contributor
0 Kudos

Hi Suprapto,

I don't think it's possible to achieve what you are trying to do. As an alternative, create a custom button and assign two macros to it, first refresh and then the one which you have designed. So, in effect, once user clicks on that button, it would first refresh and then call the required macro.

Hope it helps!!