#1
|
|||
|
|||
Delete Bookmarks in Footnotes
Hey Guys, I've looked everywhere for this one and come up empty. I have documents that have a lot bookmarks and I need to delete just the footnote bookmarks. I have code to delete all bookmarks in docs, but I need to keep the text body bookmarks. I can use paste plain text, but there is formatting that gets deleted. Thanks for your help-
|
#2
|
|||
|
|||
Code:
Sub ScratchMacro() 'A basic Word macro coded by Greg Maxey Dim oRng As Word.Range Dim lngIndex As Long Set oRng = ActiveDocument.StoryRanges(wdFootnotesStory) For lngIndex = oRng.Bookmarks.Count To 1 Step -1 oRng.Bookmarks(lngIndex).Delete Next lbl_Exit: Exit Sub End Sub |
#3
|
||||
|
||||
You have already received a comprehensive answer about this (some weeks ago, in fact) at http://answers.microsoft.com/en-us/m...5-4b88da5a607a
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
Thanks Greg, works great. The reason I posted here is that after using paste plain text in another template it wiped out formatting in the footnotes. All fixed now-thanks guys.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to Delete the same watermark that are in 300 slides. I cant dare to manually delete. | yeshwanthkota111 | PowerPoint | 0 | 09-05-2015 10:03 AM |
Form updating Bookmarks - writes to the bookmarks multiple times | PeterPlys | Word VBA | 13 | 01-14-2015 06:41 AM |
Delete starting number *) and delete Unneeded data in series | frustrated teacher | Word VBA | 5 | 12-07-2014 06:53 PM |
Convert manual cross references in footnotes to other footnotes to automatic cross references | ghumdinger | Word VBA | 7 | 11-20-2014 11:47 PM |
delete email message via blackberry and have it delete on my pop3 and my outlook | Iamthestorm | Outlook | 2 | 10-28-2010 12:21 AM |