V
vipul
How can I remove all the hyperlinks from my word
document.Pls help out.
Vipul
document.Pls help out.
Vipul
Jezebel said:Do until ActiveDocument.Hyperlinks.count = 0
activedocument.hyperlinks(1).delete
Loop
Larry said:It's interesting and surprising that this code works, because if you
have code that goes forward
Jezebel said:For ... each is a general solution to this problem, because it's guaranteed
to iterate every member of the collection, even if the loop itself adds or
removes members:
Dim pHyperlink as Word.Hyperlink
For each pHyperlink in ActiveDocument.Hyperlinks
pHyperlink.delete
Next
-----Original Message-----
For ... each is a general solution to this problem, because it's guaranteed
to iterate every member of the collection, even if the loop itself adds or
removes members:
Dim pHyperlink as Word.Hyperlink
For each pHyperlink in ActiveDocument.Hyperlinks
pHyperlink.delete
Next
through the document, like the first macro
.
Charles Kenyon said:If you just want to get rid of the blue underlined text you can change the
Hyperlink character style to be the same as your regular text. The
hyperlinks will still be there and will change the mouse pointer into a
little hand but they won't mess up your printed version.
--
Charles Kenyon
Word New User FAQ & Web Directory:
<URL: http://addbalance.com/word/index.htm>
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
<URL: http://addbalance.com/usersguide/index.htm>
See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.