Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2012 at 10:30 AM

    Dear All,

    I put these line in my module.

    Dim EPM As New FPMXLClient.EPMAddInAutomation

    Sub AFTER_REFRESH()

    < my code >

    End Sub

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 09, 2012 at 08:15 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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!!

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.