<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to extract urls from MS Word 2007 hyperlinks</title>
	<atom:link href="http://www.yourbloghelper.com/2008/12/07/how-to-extract-urls-from-ms-word-2007-hyperlinks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yourbloghelper.com/2008/12/07/how-to-extract-urls-from-ms-word-2007-hyperlinks/</link>
	<description>WordPress, Thesis, and Social Media Tutorials and Tips</description>
	<lastBuildDate>Thu, 05 Jan 2012 06:18:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Vincent</title>
		<link>http://www.yourbloghelper.com/2008/12/07/how-to-extract-urls-from-ms-word-2007-hyperlinks/comment-page-1/#comment-4329</link>
		<dc:creator>Vincent</dc:creator>
		<pubDate>Sat, 12 Nov 2011 17:11:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.yourbloghelper.com/?p=103#comment-4329</guid>
		<description>WOW!...You guys are just GREAT.. I was struggling for HOURS to try and extrapolate 1000&#039;s of links from my documents and then found this site and the solutions all worked fantastic. Thanks guys!</description>
		<content:encoded><![CDATA[<p>WOW!&#8230;You guys are just GREAT.. I was struggling for HOURS to try and extrapolate 1000&#8242;s of links from my documents and then found this site and the solutions all worked fantastic. Thanks guys!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enrico Poli</title>
		<link>http://www.yourbloghelper.com/2008/12/07/how-to-extract-urls-from-ms-word-2007-hyperlinks/comment-page-1/#comment-2100</link>
		<dc:creator>Enrico Poli</dc:creator>
		<pubDate>Sun, 06 Feb 2011 19:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.yourbloghelper.com/?p=103#comment-2100</guid>
		<description>Even better solution (see here for another piece of my frankenstein code: http://bit.ly/gydBq0), this piece of VBA will insert the links *as footnotes*. As I don’t understand fully what I’m doing, I guess it could be optimized, but it does work for me, even on longish documents, and I love it :-) 

Sub HlinkChanger()
Dim oRange As Word.Range
Dim oField As Field
Dim link As Variant
With ActiveDocument
.Range.AutoFormat
For Each oRange In .StoryRanges
        For Each oFld In oRange.Fields
            If oFld.Type = wdFieldHyperlink Then
                For Each link In oFld.Result.Hyperlinks
                    oFld.Select
                    Selection.MoveRight Unit:=wdCharacter, Count:=1
                    With Selection
                    With .FootnoteOptions
                        .Location = wdBottomOfPage
                        .NumberingRule = wdRestartContinuous
                        .StartingNumber = 1
                        .NumberStyle = wdNoteNumberStyleArabic
                    End With
                    .Footnotes.Add Range:=Selection.Range, Reference:=&quot;&quot;
                    End With
                    Selection.TypeText Text:=link.Address
                    ActiveWindow.View.SeekView = wdSeekMainDocument
                Next link
            End If
        Next oFld
    Set oRange = oRange.NextStoryRange
Next oRange
End With
End Sub</description>
		<content:encoded><![CDATA[<p>Even better solution (see here for another piece of my frankenstein code: <a href="http://bit.ly/gydBq0" rel="nofollow">http://bit.ly/gydBq0</a>), this piece of VBA will insert the links *as footnotes*. As I don’t understand fully what I’m doing, I guess it could be optimized, but it does work for me, even on longish documents, and I love it :-) </p>
<p>Sub HlinkChanger()<br />
Dim oRange As Word.Range<br />
Dim oField As Field<br />
Dim link As Variant<br />
With ActiveDocument<br />
.Range.AutoFormat<br />
For Each oRange In .StoryRanges<br />
        For Each oFld In oRange.Fields<br />
            If oFld.Type = wdFieldHyperlink Then<br />
                For Each link In oFld.Result.Hyperlinks<br />
                    oFld.Select<br />
                    Selection.MoveRight Unit:=wdCharacter, Count:=1<br />
                    With Selection<br />
                    With .FootnoteOptions<br />
                        .Location = wdBottomOfPage<br />
                        .NumberingRule = wdRestartContinuous<br />
                        .StartingNumber = 1<br />
                        .NumberStyle = wdNoteNumberStyleArabic<br />
                    End With<br />
                    .Footnotes.Add Range:=Selection.Range, Reference:=&#8221;"<br />
                    End With<br />
                    Selection.TypeText Text:=link.Address<br />
                    ActiveWindow.View.SeekView = wdSeekMainDocument<br />
                Next link<br />
            End If<br />
        Next oFld<br />
    Set oRange = oRange.NextStoryRange<br />
Next oRange<br />
End With<br />
End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enrico Poli</title>
		<link>http://www.yourbloghelper.com/2008/12/07/how-to-extract-urls-from-ms-word-2007-hyperlinks/comment-page-1/#comment-2099</link>
		<dc:creator>Enrico Poli</dc:creator>
		<pubDate>Sun, 06 Feb 2011 19:14:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.yourbloghelper.com/?p=103#comment-2099</guid>
		<description>I had the same problem as Conrad.

I merged the script from Yves with one found on http://bit.ly/151sJ8, and the result seems to work for me (see below). Caveat: this was just an hack, I’m not a VBA programmer, and I struggle to remember how to open the VB editor from MS Word. All I can say is: this seems to work for me. 

Sub HlinkChanger()
Dim oRange As Word.Range
Dim oField As Field
Dim link As Variant
With ActiveDocument
.Range.AutoFormat
For Each oRange In .StoryRanges
        For Each oFld In oRange.Fields
            If oFld.Type = wdFieldHyperlink Then
                For Each link In oFld.Result.Hyperlinks
                    oFld.Select
                    Selection.InsertAfter (&quot; (&quot; + link.Address + &quot;)&quot;)
                Next link
            End If
        Next oFld
    Set oRange = oRange.NextStoryRange
Next oRange
End With
End Sub</description>
		<content:encoded><![CDATA[<p>I had the same problem as Conrad.</p>
<p>I merged the script from Yves with one found on <a href="http://bit.ly/151sJ8" rel="nofollow">http://bit.ly/151sJ8</a>, and the result seems to work for me (see below). Caveat: this was just an hack, I’m not a VBA programmer, and I struggle to remember how to open the VB editor from MS Word. All I can say is: this seems to work for me. </p>
<p>Sub HlinkChanger()<br />
Dim oRange As Word.Range<br />
Dim oField As Field<br />
Dim link As Variant<br />
With ActiveDocument<br />
.Range.AutoFormat<br />
For Each oRange In .StoryRanges<br />
        For Each oFld In oRange.Fields<br />
            If oFld.Type = wdFieldHyperlink Then<br />
                For Each link In oFld.Result.Hyperlinks<br />
                    oFld.Select<br />
                    Selection.InsertAfter (&#8221; (&#8221; + link.Address + &#8220;)&#8221;)<br />
                Next link<br />
            End If<br />
        Next oFld<br />
    Set oRange = oRange.NextStoryRange<br />
Next oRange<br />
End With<br />
End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Knut</title>
		<link>http://www.yourbloghelper.com/2008/12/07/how-to-extract-urls-from-ms-word-2007-hyperlinks/comment-page-1/#comment-1105</link>
		<dc:creator>Knut</dc:creator>
		<pubDate>Mon, 11 Jan 2010 09:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.yourbloghelper.com/?p=103#comment-1105</guid>
		<description>I have a similar problem, having to extract close to 400 hyperlinks from a Word document.

I found a script on Microsoft&#039;s Technet pages which promises to do exactly that:
http://technet.microsoft.com/en-us/library/ee692879.aspx

I have not yet tested it, but crossing my fingers that this what is needed...

The script is as follows:

Set objWord = CreateObject(&quot;Word.Application&quot;)
objWord.Visible = True

Set objDoc = objWord.Documents.Open(&quot;c:\scripts\test.doc&quot;)

Set colHyperlinks = objDoc.Hyperlinks

For Each objHyperlink in colHyperlinks
    Wscript.Echo objHyperlink.Address
    Wscript.Echo objHyperlink.TextToDisplay
Next

Variants are also given in the article for exporting the hyperlinks to &#039;My favourites&#039; or to an HTML document.</description>
		<content:encoded><![CDATA[<p>I have a similar problem, having to extract close to 400 hyperlinks from a Word document.</p>
<p>I found a script on Microsoft&#8217;s Technet pages which promises to do exactly that:<br />
<a href="http://technet.microsoft.com/en-us/library/ee692879.aspx" rel="nofollow">http://technet.microsoft.com/en-us/library/ee692879.aspx</a></p>
<p>I have not yet tested it, but crossing my fingers that this what is needed&#8230;</p>
<p>The script is as follows:</p>
<p>Set objWord = CreateObject(&#8220;Word.Application&#8221;)<br />
objWord.Visible = True</p>
<p>Set objDoc = objWord.Documents.Open(&#8220;c:\scripts\test.doc&#8221;)</p>
<p>Set colHyperlinks = objDoc.Hyperlinks</p>
<p>For Each objHyperlink in colHyperlinks<br />
    Wscript.Echo objHyperlink.Address<br />
    Wscript.Echo objHyperlink.TextToDisplay<br />
Next</p>
<p>Variants are also given in the article for exporting the hyperlinks to &#8216;My favourites&#8217; or to an HTML document.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Conrad</title>
		<link>http://www.yourbloghelper.com/2008/12/07/how-to-extract-urls-from-ms-word-2007-hyperlinks/comment-page-1/#comment-1102</link>
		<dc:creator>Conrad</dc:creator>
		<pubDate>Fri, 08 Jan 2010 23:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.yourbloghelper.com/?p=103#comment-1102</guid>
		<description>Unfortunately the makros did not work as expected. Before I was going to contact Yves, I tried the following and it worked out well:
I saved the word document as a .html file and opened it with firefox. With the plugin &quot;webdeveloper&#039;s toolbar&quot; you can easily list out every link in a website (click: Information -&gt; View Link Information) and then copy the urls. 

I hope this helps a bit.</description>
		<content:encoded><![CDATA[<p>Unfortunately the makros did not work as expected. Before I was going to contact Yves, I tried the following and it worked out well:<br />
I saved the word document as a .html file and opened it with firefox. With the plugin &#8220;webdeveloper&#8217;s toolbar&#8221; you can easily list out every link in a website (click: Information -&gt; View Link Information) and then copy the urls. </p>
<p>I hope this helps a bit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnout Lansberg</title>
		<link>http://www.yourbloghelper.com/2008/12/07/how-to-extract-urls-from-ms-word-2007-hyperlinks/comment-page-1/#comment-1101</link>
		<dc:creator>Arnout Lansberg</dc:creator>
		<pubDate>Fri, 08 Jan 2010 13:49:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.yourbloghelper.com/?p=103#comment-1101</guid>
		<description>Hello Conrad, I have exactly the same problem using Kathy&#039;s macro ( &#039;HYPERLINK&#039;). Did you happen to find the cause/solution yet?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hello Conrad, I have exactly the same problem using Kathy&#8217;s macro ( &#8216;HYPERLINK&#8217;). Did you happen to find the cause/solution yet?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Conrad</title>
		<link>http://www.yourbloghelper.com/2008/12/07/how-to-extract-urls-from-ms-word-2007-hyperlinks/comment-page-1/#comment-720</link>
		<dc:creator>Conrad</dc:creator>
		<pubDate>Fri, 02 Oct 2009 07:43:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.yourbloghelper.com/?p=103#comment-720</guid>
		<description>It&#039;s the same in my text.. blue underlined clickable links.. weird.. I will contact Yves and let you know if I have the solution :)
 thanks for the advice</description>
		<content:encoded><![CDATA[<p>It&#8217;s the same in my text.. blue underlined clickable links.. weird.. I will contact Yves and let you know if I have the solution :)<br />
 thanks for the advice</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kathy Purdy</title>
		<link>http://www.yourbloghelper.com/2008/12/07/how-to-extract-urls-from-ms-word-2007-hyperlinks/comment-page-1/#comment-717</link>
		<dc:creator>Kathy Purdy</dc:creator>
		<pubDate>Thu, 01 Oct 2009 00:24:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.yourbloghelper.com/?p=103#comment-717</guid>
		<description>I think it is because you and I were starting from different places. In my original document, the text was already a hyperlink. In other words, you couldn&#039;t see the anchor tag, the text was &quot;clickable.&quot; And what the macro does is make it so you can see the url, because when it&#039;s printed on paper you can&#039;t click on the links. If you want help modifying this macro you should contact Yves, because I don&#039;t know how to change it.</description>
		<content:encoded><![CDATA[<p>I think it is because you and I were starting from different places. In my original document, the text was already a hyperlink. In other words, you couldn&#8217;t see the anchor tag, the text was &#8220;clickable.&#8221; And what the macro does is make it so you can see the url, because when it&#8217;s printed on paper you can&#8217;t click on the links. If you want help modifying this macro you should contact Yves, because I don&#8217;t know how to change it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Conrad</title>
		<link>http://www.yourbloghelper.com/2008/12/07/how-to-extract-urls-from-ms-word-2007-hyperlinks/comment-page-1/#comment-716</link>
		<dc:creator>Conrad</dc:creator>
		<pubDate>Wed, 30 Sep 2009 23:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.yourbloghelper.com/?p=103#comment-716</guid>
		<description>I see.. well the problem is following:
I have a text and a link like an &lt;a&gt; tag in html within my word document. But when applying this macro (using the &quot;create a new macro&quot; command on developer-tab, inserting the script above and pressing play) it just writes the word &quot;(HYPERLINK)&quot; behind everyone of my linked-text. I was expecting the url of the text within the brackets after every link.</description>
		<content:encoded><![CDATA[<p>I see.. well the problem is following:<br />
I have a text and a link like an &lt;a&gt; tag in html within my word document. But when applying this macro (using the &#8220;create a new macro&#8221; command on developer-tab, inserting the script above and pressing play) it just writes the word &#8220;(HYPERLINK)&#8221; behind everyone of my linked-text. I was expecting the url of the text within the brackets after every link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kathy Purdy</title>
		<link>http://www.yourbloghelper.com/2008/12/07/how-to-extract-urls-from-ms-word-2007-hyperlinks/comment-page-1/#comment-712</link>
		<dc:creator>Kathy Purdy</dc:creator>
		<pubDate>Wed, 30 Sep 2009 00:51:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.yourbloghelper.com/?p=103#comment-712</guid>
		<description>I didn&#039;t change anything in the macro script, Conrad. I&#039;m sorry; I don&#039;t understand what your problem is.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t change anything in the macro script, Conrad. I&#8217;m sorry; I don&#8217;t understand what your problem is.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

