I have a very large document that I have hundreds of cross-references entered as links. I need to split the document up into chunks which may get separated thereby breaking the links in the file. Is there a way to replace the links with plain text, without having to enter this manually. I am looking for someone who has a macro or knows how to do this. Please help, this is rather urgent. -- Ken Smith
Dim afield As Field For Each afield In ActiveDocument.Fields If afield.Type = wdFieldRef Then afield.Unlink End If Next afield -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Ken" wrote in message news:51161C10-EB9A-4389-B427-2F4A6373BE92@microsoft.com... >I have a very large document that I have hundreds of cross-references >entered > as links. I need to split the document up into chunks which may get > separated > thereby breaking the links in the file. > > Is there a way to replace the links with plain text, without having to > enter > this manually. I am looking for someone who has a macro or knows how to do > this. > > Please help, this is rather urgent. > -- > Ken Smith
Thank you, it worked! -- Ken Smith "Doug Robbins - Word MVP" wrote: > Dim afield As Field > For Each afield In ActiveDocument.Fields > If afield.Type = wdFieldRef Then > afield.Unlink > End If > Next afield > > > -- > Hope this helps. > > Please reply to the newsgroup unless you wish to avail yourself of my > services on a paid consulting basis. > > Doug Robbins - Word MVP > > "Ken" wrote in message > news:51161C10-EB9A-4389-B427-2F4A6373BE92@microsoft.com... > >I have a very large document that I have hundreds of cross-references > >entered > > as links. I need to split the document up into chunks which may get > > separated > > thereby breaking the links in the file. > > > > Is there a way to replace the links with plain text, without having to > > enter > > this manually. I am looking for someone who has a macro or knows how to do > > this. > > > > Please help, this is rather urgent. > > -- > > Ken Smith > > >