A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Delete All Bookmarks



 
 
Thread Tools Display Modes
  #1  
Old April 29th, 2008, 11:36 PM
Frustrated Word User Frustrated Word User is offline
Experienced Member
 
First recorded activity by OfficeFrustration: Apr 2008
Posts: 34
Unhappy Delete All Bookmarks

I would like to delete all the bookmarks in a document.

YES I read the ONE post about this, and I don't know what a VBA is. Sorry, Word is not my forte.

Thanks in advance.

Frustrated in Roseville
  #2  
Old April 29th, 2008, 11:47 PM
Frustrated Word User Frustrated Word User is offline
Experienced Member
 
First recorded activity by OfficeFrustration: Apr 2008
Posts: 34
Talking

Never mind, I figured it out. Thanks!!










Quote:
Originally Posted by Frustrated Word User View Post
I would like to delete all the bookmarks in a document.

YES I read the ONE post about this, and I don't know what a VBA is. Sorry, Word is not my forte.

Thanks in advance.

Frustrated in Roseville
  #3  
Old April 30th, 2008, 01:34 AM posted to microsoft.public.word.formatting.longdocs
Herb Tyson [MVP]
external usenet poster
 
Posts: 3,614
Default Delete All Bookmarks

VBA stands for Visual Basic for Applications. Basically, it's the
programming language that Word, Excel, etc. uses for writing macros.

The short answer is that Word does not have a built-in way to delete all
bookmarks in one fell swoop. So, you either do it from the Bookmark
dialog -- one at a time--or you write a macro to automate it... assuming you
don't want to lose any formatting or features.

Another choice would be to convert (Save As) the document into a format that
does not support bookmarks (such as Microsoft Works), and then convert it
back into Word format. Depending on how the document is set up, you would
lose some formatting.

Still another choice would be to copy the contents to the clipboard, paste
it into a blank Wordpad document, copy to the clipboard again, and then
paste into a new Word document.

There are a number of variations on this theme. You would have to experiment
to see which method preserves most of what you want preserved.

--
Herb Tyson MS MVP
Author of the Word 2007 Bible
Blog: http://word2007bible.herbtyson.com
Web: http://www.herbtyson.com


"Frustrated Word User" m
wrote in message news:Frustrated.Word.User.25d7a85@officefrustratio n.com...

I would like to delete all the bookmarks in a document.

YES I read the ONE post about this, and I don't know what a VBA is.
Sorry, Word is not my forte.

Thanks in advance.

Frustrated in Roseville




--
Frustrated Word User


  #4  
Old May 30th, 2008, 12:23 PM posted to microsoft.public.word.formatting.longdocs
Jerry George
external usenet poster
 
Posts: 1
Default Delete All Bookmarks

You can simply try running a macro,

Dim bkm As Bookmark
For Each bkm In ActiveDocument.Bookmarks
bkm.Delete
Next bkm

Note that this does not delete the hidden bookmarks.

If you have multiple files you can use file io to list the directory and
then open each file and iterate the above code snippet using simple word
interop. If you need more help, just give me a holla..


Jerry George
Tata Consultancy Service Ltd.
Software Engineer

-------------------------------
"Frustrated Word User" wrote:


I would like to delete all the bookmarks in a document.

YES I read the ONE post about this, and I don't know what a VBA is.
Sorry, Word is not my forte.

Thanks in advance.

Frustrated in Roseville




--
Frustrated Word User

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:24 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.