Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-11-2017, 03:34 AM
adilprodigy adilprodigy is offline Deleting only all bookmarks contents not the bookmarks Windows 10 Deleting only all bookmarks contents not the bookmarks Office 2010 64bit
Novice
Deleting only all bookmarks contents not the bookmarks
 
Join Date: Oct 2017
Posts: 1
adilprodigy is on a distinguished road
Default Deleting only all bookmarks contents not the bookmarks

Good morning everybody,

I want to delete the bookmarks texts in the document before close.

Can you helps me?

Thank you
Reply With Quote
  #2  
Old 10-11-2017, 01:31 PM
macropod's Avatar
macropod macropod is offline Deleting only all bookmarks contents not the bookmarks Windows 7 64bit Deleting only all bookmarks contents not the bookmarks Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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

Try:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim i As Long
With ActiveDocument
  For i = 1 To .Bookmarks.Count
    .Bookmarks(i).Range.Text = vbNullString
  Next
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bookmarks Schildkröte Word VBA 8 06-28-2015 11:13 AM
Deleting only all bookmarks contents not the bookmarks Form updating Bookmarks - writes to the bookmarks multiple times PeterPlys Word VBA 13 01-14-2015 06:41 AM
Can't See Bookmarks bobmayo Word 21 06-04-2013 07:37 AM
Deleting only all bookmarks contents not the bookmarks Linking to Bookmarks savo Word 6 04-11-2013 11:04 AM
Bookmarks for a PDF? Ownaholic Word 0 10-30-2010 12:27 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:59 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