#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bookmarks | Schildkröte | Word VBA | 8 | 06-28-2015 11:13 AM |
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 |
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 |