Share via

Macro for changing hyperlink fonts?

Anonymous
2017-08-19T14:37:00+00:00

So I have been recording macros all morning with no success. Here's my situation:

I have a LOT of documents to go through and update. In each of these documents are many hyperlinks that for some reason, match the rest of the text (black, Calibri, size 12) rather than showing up in traditional hyperlink blue. I want them to be blue so I can find and fix the them easily (most of them are broken), but if I select them using Alt-F9 and then change the Style to Hyperlink, the font changes to Times New Roman. Even when I update the style and select the option to apply it to new documents from now on, the style still makes my hyperlinks Times New Roman the next time I use it.

SO. I want a macro that selects all hyperlinks, underlines them, changes the font to Calibri and changes the color to blue (red = 0, green = 0, blue = 255). It seems like it shouldn't be this complicated! (But I'm not very experienced in VBA.)

Any help would be much appreciated.

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Stefan Blom 342.4K Reputation points MVP Volunteer Moderator
    2017-08-20T15:39:33+00:00

    You don't have to (re-)apply styles to your hyperlinks. Modifying the built-in hyperlink styles to suit the needs of your document will suffice. Specifically, you will have to modify both the Hyperlink and the FollowedHyperlink styles.

    Was this answer helpful?

    0 comments No comments