Group: microsoft.public.word.vba.general
From: IdontWantSpam@nospam.net (Edward Thrashcort)
Date: Tuesday, October 23, 2007 3:34 PM
Subject: Re: Removing ALL hyperlinks

I noticed back in Word2k times that the Selection object developed a lot of
quirks. I usually assign a Selection to a Range object before working on
it. Seems less quirky that way.

Eddie

> *From:* Helmut Weber
> *Date:* Sat, 04 Aug 2007 15:47:07 +0200
>
> Hi Jonathan,
>
> >Each time you remove the first hyperlink, the next one becomes the
> first, >and therefore the easiest to get at. You repeat that process as
> many times >as there were hyperlinks at the start.
>
> sure.
>
> Of course, the question was about the active document,
> where your approach works perfectly and fast.
>
> But there is a strange case,
> where deleting hyperlinks(1) doesn't work.
>
> It is if one wants to delete all hyperlinks in the selection
> and the selection starts with a hyperlink
> and there is more than one hyperlink in the selection.
>
> In that case, the selection collapses immediately
> after deleting the first hyperlink to it's start,
> the start of the selection,
> and then there is no more hyperlink in the selection to be found.
>
> This is in no way meant as criticism.
> It is just a marginal footnote,
> a case, where Christian Freßdorf, German MVP,
> and me had to think quite a while
> about what was going on.
>
> Have a nice day.
>
> --
> Greetings from Bavaria, Germany
>
> Helmut Weber, MVP WordVBA
>
> Win XP, Office 2003
> "red.sys" & Chr$(64) & "t-online.de"
>
>
>
>
>
>
>
>
>
>