I'm a technical writer who needs to add the page number after a hyperlink. Another help author had posted this question back in 2008 and ended up with a working macro. I used his macro and although it works (I get the correct page number), the formatting is off. I don't know if it's because I'm using later versions of the software or if something else is off. (I'm using RoboHelp HTML v9 and Word 2010).
Here's the link to his original post (now closed):
http://windowssecrets.com/forums/sho...PageRefs%28%29
To summarize, we're both using a help authoring tool called RoboHelp. RoboHelp allows you to basically Save As Word, which gives you a nice document to print. However, a clickable hyperlink is useless in a printed document. In a printed document, you want the hyperlink to be presented with a page number.
Here's the link to the macro he ended up with and which I'm trying to use. (See Add Page Numbers after hyperlinks in RoboHelp Printed Documentation.)
http://www.grainge.org/pages/authori...ord_macros.htm
The macro works, but the formatting is wrong.
My original text
Click the Attachment button.
After I run the macro
Click the Attachment button (page 16).
What can I do to get the result to have the underline in the right place? Either of these formats would do. I would consider getting rid of the link altogether, but I know that some user will open up a version of the Word file and want to be able to use real hyperlinks there.
Click the Attachment button (page 16).
Click the Attachment button (page 16).



