This content has been marked as final. Show 4 replies
Create a variable that contains the following formula and call it vMaxMonth:
. I know this is somewhat convoluted, but it doesn't work to just say max(Month) for some reason.
Then create the following macro, which you can trigger on activate or whenever:
inputVal = ActiveDocument.Variables("vMaxMonth").GetContent.String