The macro from which is extracted the above screenshot, calculates all the holidays from year nFirstYear for nNumYears for the HolidaysList sCurHolList. Using input variable allows you to reuse the same macro with different begin/end dates and for different HolidaysLists, without modifying the original macro. This is not only a time savings for the person writing macros, but it also allows users who do not feel comfortable writing macros, to use them under varied initial conditions.
•Whenever you change one of the input values, you must click on the green check button to confirm the change.
•Since dates are represented as integers, you can use the button with a small calendar to select a date as input value of an integer variable.