I am currently writing a report where I use hyperlink, as an example \href{run:./Annex/MyTestResult.pdf}{Annex 4}.
It works pretty fine.
However, I would like to add a counter for Annex numbering.
Is there a way to make this easier for example by using \newcommand? If so, how can I add a counter and use \href command?

\newcounter{annexcntr}\newcommand{\annexref}[1]{\refstepcounter{annexcntr}\href{#1}{Annex~ \theannexctr}, most likely?\annexref{run:./Annex/MyTestResult.pdf}should work then – Feb 28 '19 at 13:41