Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 12th, 2003, 10:05 AM
Registered User
 
Join Date: Aug 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Word VBA

Is there any way of using VBA to perform the "break link" function. I have tried recording a macro then performing the function, however nothing is recorded!

Any help would be gratefully received

 
Old September 15th, 2003, 07:14 PM
Registered User
 
Join Date: Aug 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

if you just want to find & remove links try 'Find Links' at
http://www.bmsltd.co.uk/mvp/

Kieran
 
Old September 21st, 2003, 09:38 AM
Registered User
 
Join Date: Aug 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, I will give that a go.

 
Old September 21st, 2003, 09:46 AM
Registered User
 
Join Date: Aug 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Unfortunately, this is not what I am looking for. I am looking for the code in Word 2000 that will break a link in a Word doc.

 
Old December 3rd, 2003, 04:32 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try this code
Sub RemoveLinks()
Dim aField As Object

    For Each aField In ActiveDocument.Fields
        aField.LinkFormat.BreakLink
    Next aField

End Sub

v-m






Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA and MS Word Dolphin VB Components 1 February 25th, 2006 06:16 PM
is there a folder for vba word? muki Excel VBA 3 November 18th, 2005 05:46 AM
vba and MS Word Earl G. Hyde VB How-To 0 December 27th, 2003 02:06 AM
VBA Word gcookie79 Excel VBA 1 November 12th, 2003 01:04 PM
eventhandler in VBA for Word nesplb Pro VB 6 0 July 30th, 2003 06:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.