Jump to content

How to Bold all the links in a Document?


Recommended Posts

Posted

I am using Microsoft Office Word 2007. I have a document which has approximately 1000 link in it & i want to bold them. But these links are between lines, which means i have to bold all these links manually.

I want to know is there any option to bold & Underline all the links at the same time?

When i put the cursor in the hyperlink and right click the Style it shows me this window:

43423735op0.th.png

Can you tell me what should i do now, because i am still not able to change all the Links to Bold or Underlined.


Posted

You need to write a macro. Here's a macro that removes hyperlinks:

Sub removeallhyperlinks()
For Each myHyperlink In ActiveDocument.Hyperlinks
myHyperlink.Delete
Next myHyperlink
End Sub

So you need to write a similar macro. Just replace myHyperlink.Delete with the VB script to make it bold. Don't ask me how. read the help file.

Sub makeboldhyperlinks()
For Each myHyperlink In ActiveDocument.Hyperlinks
add script to make bold
Next myHyperlink
End Sub

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...