View Single Post
 
Old 07-31-2023, 07:21 AM
Marrick13 Marrick13 is offline Windows XP Office 2010 32bit
Competent Performer
 
Join Date: Jun 2006
Posts: 102
Marrick13 will become famous soon enough
Default

Thanks, Graham, but the reason I wanted a macro to do this was to avoid having to open some 200 documents and change their style. I am also working with documents produced by a company that does not use styles. I realize that creating a link in Word automatically assigns it the hyperlink style, but for some reason, when I created test links in a small test sampling of those documents, that style was not assigned to the links (in fact, all of those company documents showed only the 17 styles in the style panel that appear by default in new documents, and 'hyperlink' is not one of them.)

I was hoping to be able to run a macro that opens all Word docs in a folder and set the font color for all their links (preferably using RGB colors), regardless of whether those links have the hyperlink or followed hyperlink or any other style. I even tried adapting the code I included in my first post to apply the hyperlink style to all links in each file the code opens in that folder, but was unable to get that to work, even when I had the code show 'hyperlink' in the styles panel.

I also do not see that "Word option > advanced > general > update automatic links on open" (using Office 365). When I click Word Options, I see "General" and "Advanced", neither one of which has anything like "update automatic links on open".
Reply With Quote