bottom
Great WordTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > WordTips Home > Editing > Bookmarks > Determining the Number of Bookmarks Defined in a Document with WordBasic

Determining the Number of Bookmarks Defined in a Document with WordBasic

Summary: Bookmarks can come in handy in a macro, if you can figure out how many there are. This WordBasic code does the trick. (This tip works with Microsoft Word 6, and Word 95.)

You can determine the number of bookmarks defined in a document by using the Count property with the Bookmarks collection object. This is done using the following WordBasic syntax:

x = CountBookmarks

where x is the variable you can then use in other macro lines.

Tip #759 applies to Microsoft Word versions: 6 | 95


Take Control! Master the real power behind Word! Successfully master the secrets of powerful formatting and create documents that stand out from the rest. Best of all, you can create documents that are easy to maintain and quick to change.
 
Check out Word 2007 Styles and Templates today!

Helpful Links

Ask a Word Question
Make a Comment

Tips.Net Home
Vital News Home

WordTips FAQ
WordTips Premium

Learn Access Now

Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

 

Great Info!

Get tips like this every week in WordTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)