how can I remove hyperlinks from text copied from the web?

  • Thread starter removing hyperlinks from copied text
  • Start date
R

removing hyperlinks from copied text

?When I copy a list from the internet, I often get items highlighted in blue
that have embedded jump sites or other information. I can clean these up one
at a time, but that is very tedious if I have a whole list of documents, each
of which has embedded information.

How can I strip a document clean all at once?
 
S

Suzanne S. Barnhill

If hyperlinks are the only fields in the text, select it and press
Ctrl+Shift+F9 to unlink the fields.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"removing hyperlinks from copied text"
 
G

Greg Maxey

Or use a macro:

Sub NailNeedsHammer()
Dim oFld As Word.Field
For Each oFld In ActiveDocument.Fields
If oFld.Type = wdFieldHyperlink Then
oFld.Unlink
End If
Next oFld
End Sub
 
P

Peter T. Daniels

I was going to let this go, but then I saw Greg's arrogant postings in
the "Paste Unformatted" thread.

If all you have is a hammer, everything looks like a nail.

Under what _possible_ circumstances is this preferable to Suzanne's
two-keystroke solution to the problem?
 
G

Greg Maxey

Suzanne's answer was "conditional." Or maybe you don't understand plain
English. "If" generally means that there could be other circumstances.
Let's see here's one. "Hyperlinks are not the only fields."
 
P

Peter T. Daniels

So your "solution" solves a problem the OP didn't ask about.

As I said, I was going to let this go, but you chose to engage in your
standard nasty discourse in another thread.
 
S

Suzanne S. Barnhill

Could we please keep the "nasty discourse" confined to the thread in which
it occurs and not introduce it here? Thanks!

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

So your "solution" solves a problem the OP didn't ask about.

As I said, I was going to let this go, but you chose to engage in your
standard nasty discourse in another thread.
 
G

Greg Maxey

Peter,

What your hold on to and what you let go matters not to me.

Back to your question. "Under what _possible_ circumstances is this
preferable to Suzanne's two-keystroke solution to the problem?"

It could be that you are simply dazed and reeling from your recent
spankings, but for a person supposedly skilled in a gazillion different
languages you seem particularly dense when is comes to comprehending plain
English. Suzanne offered a correct and perfectly sensible answer to the
OP's original question and I felt that she took care to state that her
answer was conditional. That condition being: "If hyperlinks are the only
fields in the document." I think a reasonable person could conclude that if
hyperlinks are not the only fields in the document then the process that
Suzanne provided may not produce the desired result.

The possible circumstance being the OP has copied a list containing
hyperlink fields into a document that contains other types of fields.

Now your statement: "So your "solution" solves a problem the OP didn't ask
about."

The OP did not state that there are other fields and the OP did not state
that there are not other fields. At this point we don't know if there are
other fields or not. There may be other fields and there may not be other
fields. We may never hear from the OP again and never know if there are
other fields or not. In any case you are correct, my solution solves a
problem that the OP didn't ask about.

So my high crime is solving a problem that the OP didn't ask about. Is this
the point that you have taken so much effort to highlight and drive home?
Bask in the glory of your small victory Peter.

--
Greg Maxey - Word MVP

My web site http://gregmaxey.mvps.org



So your "solution" solves a problem the OP didn't ask about.

As I said, I was going to let this go, but you chose to engage in your
standard nasty discourse in another thread.
 
S

Suzanne S. Barnhill

In my original answer, I should have pointed out that the OP could select
just the portion of text that had been pasted in from the Web and unlink
fields only in that portion. It's unlikely that Web text would contain
fields other than hyperlinks.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
G

Greg Maxey

Suzanne,

Your original post was fne. My orignial post was fine. Peter is just being
Peter.
 

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