Remove ALL Hyperlinks?

M

MC

Is it possible toremove ALL hyperlinks in a document in a single step?

So far, all I've been able to find is a way to do them one by one.

Seems to me it would be a useful command if it isn't there.
 
M

Michel Bintener

Depends on which version of Word you are using. If it's any version of
Word prior to Word 2008, you can use the following macro, courtesy of
John McGhie:

Sub Main()
' Removes hyperlinks from document
' Macro written 1 Aug 2001 by John McGhie
For i = ActiveDocument.Hyperlinks.Count To 1 Step -1
ActiveDocument.Hyperlinks(i).Delete
Next i

End Sub

If you don't know how to create a macro, see the following page:
<http://word.mvps.org/Mac/InstallMacro.html>

In Word 2008, this method does not work any longer since VBA support has
been removed (which is required to run macros). There might be a way to
remove all these hyperlinks via AppleScript, but the AppleScript that's
available for Word 2004 has a number of technical limitations which
prevent it from removing ALL the hyperlinks. Should you want to have a
look at it nonetheless, let me know.

--
Michel Bintener
Microsoft MVP
Office:Mac (Entourage & Word)

***Always reply to the newsgroup.***
 
C

CyberTaz

When you say "remove" do you actually mean excise them from the doc
altogether or simply render them sterile but retained as plain text?

If the latter - and there are no other fields/links in the doc you wish to
continue updating - you can Select All (Command+A), then Shift+Command+F9 to
unlink the fields. If there are some fields you want to keep active it's a
bit more complex, but I believe I've seen a macro which might help if you're
working with a version of Word prior to 2008.

HTH |:>)
Bob Jones
[MVP] Office:Mac
 
N

Norman R. Nager, Ph.D.

I just tried this and, for some reason, it didn't work with my Word 2008. I
then looked in Word/Help/Hyperlink and found (and copied to Notes) how to
create, edit and remove hyperlinks. That works fine for me.

Incidentally, I then looked under Excel/Help/Hyperlink and found how to
create, edit and remove hyperlinks in Excel 2008.

Respectfully, Norm
 
M

MC

CyberTaz said:
When you say "remove" do you actually mean excise them from the doc
altogether or simply render them sterile but retained as plain text?

The latter.
If the latter - and there are no other fields/links in the doc you wish to
continue updating - you can Select All (Command+A), then Shift+Command+F9 to
unlink the fields. If there are some fields you want to keep active it's a
bit more complex, but I believe I've seen a macro which might help if you're
working with a version of Word prior to 2008.

Many thanks!
 
J

John McGhie

Hi Norman:

Late at night, was it? :) You need to read very carefully: he said
"Versions of Word PRIOR to Word 2008".

Word 2008 has no VBA interpreter: nothing in VBA is going to work, ever.

Eventually, someone will recode that as an AppleScript, but nobody has yet
:)

Cheers


I just tried this and, for some reason, it didn't work with my Word 2008. I
then looked in Word/Help/Hyperlink and found (and copied to Notes) how to
create, edit and remove hyperlinks. That works fine for me.

Incidentally, I then looked under Excel/Help/Hyperlink and found how to
create, edit and remove hyperlinks in Excel 2008.

Respectfully, Norm

--
Don't wait for your answer, click here: http://www.word.mvps.org/

Please reply in the group. Please do NOT email me unless I ask you to.

John McGhie, Consultant Technical Writer
McGhie Information Engineering Pty Ltd
http://jgmcghie.fastmail.com.au/
Sydney, Australia. S33°53'34.20 E151°14'54.50
+61 4 1209 1410, mailto:[email protected]
 
C

CyberTaz

Hi John -

I thought Norm was responding to the unlinking keystroke I had suggested -
at least that's the impression I had from the context of his post. That
keystroke, however, I have confirmed several times & it works in 2008 just
the same as in prior versions or I wouldn't have posted it.

Norm -

The Help technique is fine for removing hyperlinks one at a time, but that's
exactly what the OP was hoping to avoid having to do. If the
Shift+Command+F9 keystroke is what isn't working for you please give us more
details about the doc involved plus any additional information - such as
whether other keyboard commands may be failing as well.

OTOH, if you *do* mean the macro, John pretty much clarified that:)

Regards |:>)
Bob Jones
[MVP] Office:Mac
 
J

John McGhie

If he was, then *I* must have been having a late night. Sorry Norm :)


Hi John -

I thought Norm was responding to the unlinking keystroke I had suggested -
at least that's the impression I had from the context of his post. That
keystroke, however, I have confirmed several times & it works in 2008 just
the same as in prior versions or I wouldn't have posted it.

Norm -

The Help technique is fine for removing hyperlinks one at a time, but that's
exactly what the OP was hoping to avoid having to do. If the
Shift+Command+F9 keystroke is what isn't working for you please give us more
details about the doc involved plus any additional information - such as
whether other keyboard commands may be failing as well.

OTOH, if you *do* mean the macro, John pretty much clarified that:)

Regards |:>)
Bob Jones
[MVP] Office:Mac

--
Don't wait for your answer, click here: http://www.word.mvps.org/

Please reply in the group. Please do NOT email me unless I ask you to.

John McGhie, Consultant Technical Writer
McGhie Information Engineering Pty Ltd
http://jgmcghie.fastmail.com.au/
Sydney, Australia. S33°53'34.20 E151°14'54.50
+61 4 1209 1410, mailto:[email protected]
 
K

katychallis

Here's my discovery, 5 years after the original question was posted:

This might be obvious to everyone else, but I could not figure out why cmd+shift+F9 was not working for me. I just happened upon another forum that said you need to include the "fn" in there, so it's actually:

cmd+A (select all)
fn+cmd+shift+F9

If that is obvious to everyone else, sorry to be the simple-minded one to invade on the thread. :/
 
P

Patty Winter

Here's my discovery, 5 years after the original question was posted:

This might be obvious to everyone else, but I could not figure out why
cmd+shift+F9 was not working for me. I just happened upon another forum
that said you need to include the "fn" in there, so it's actually:

cmd+A (select all)
fn+cmd+shift+F9

It depends on which keyboard you have. (And maybe on changes that
Apple has defined to the function keys in the past several years...)

I had the same issue a couple of weeks ago; I couldn't turn a
Word table of contents into plain text, then I remembered that
I had to use the fn key.


Patty
 

Ask a Question

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.

Ask a Question

Top