Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-23-2015, 05:57 AM
brent chadwick brent chadwick is offline Delete Bookmarks in Footnotes Windows 8 Delete Bookmarks in Footnotes Office 2013
Advanced Beginner
Delete Bookmarks in Footnotes
 
Join Date: Mar 2015
Posts: 86
brent chadwick is on a distinguished road
Default 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-
Reply With Quote
  #2  
Old 12-23-2015, 01:32 PM
gmaxey gmaxey is offline Delete Bookmarks in Footnotes Windows 7 32bit Delete Bookmarks in Footnotes Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,429
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

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
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #3  
Old 12-23-2015, 06:02 PM
macropod's Avatar
macropod macropod is offline Delete Bookmarks in Footnotes Windows 7 64bit Delete Bookmarks in Footnotes Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #4  
Old 12-24-2015, 01:40 PM
brent chadwick brent chadwick is offline Delete Bookmarks in Footnotes Windows 8 Delete Bookmarks in Footnotes Office 2013
Advanced Beginner
Delete Bookmarks in Footnotes
 
Join Date: Mar 2015
Posts: 86
brent chadwick is on a distinguished road
Default

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.
Reply With Quote
Reply



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
Delete Bookmarks in Footnotes Form updating Bookmarks - writes to the bookmarks multiple times PeterPlys Word VBA 13 01-14-2015 06:41 AM
Delete Bookmarks in Footnotes 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

Other Forums: Access Forums

All times are GMT -7. The time now is 09:00 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft