Skip to main content

Identify which Validation called a Macro

Answered

Comments

4 comments

  • Official comment
    Yaremi Miranda Lopez

    Hello Guy,

    You can use this option to identify where is the UF used.

  • Guy Reynolds

    Hi Yaremi

    This does not really answer my question.

    It is not a case of looking to see where a macro is used but finding from within a running macro what called the macro to set it running.

    I have several different validations within certain forms and across several different types of form (all marketing documents). When triggered the each validation calls a macro individual to the validation however >80% of the code is common to all of the macros. What I would like to be to do is instead of having 10 macros which have 80% common code and 20% different depending on the Validation which uses it, is to have one macro with conditional statement based on the calling Validation. ie

    Common code

    If Valdation1 do some code specific to Validation1

    If Valdation2 do  some code specific to Validation2

    .............

    But to do this I need to know the Validation which called the macro.

  • Yaremi Miranda Lopez

    Hello Guy,

    We don't have a report like this, the only ones we provide is the one I already mentioned and the one for the categories.

  • sb

    I was just looking for something similar. 

    It would be good to be able to exclude or run different parts of the macro depending on the validation that is calling it, rather than creating almost identical macros

Please sign in to leave a comment.