Word.Tips.Net Welcome toWord.Tips.Net

Helpful Links

Tips.Net Home
WordTips Home

Ask a Word Question
Make a Comment

Tips.Net Store

WordTips FAQ
WordTips Premium

Learn Access Now
Free Printable Forms

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

Newest Tips

Arranging Document Windows

Specifying a Backup Location

Controlling Chart Gridlines

Merging Table Cells

Collapsing and Expanding Subdocuments

Zooming With the Keyboard

Initiating a New Search

 

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

Tremendous Table Tips! We often take tables for granted, but Word includes some very powerful ways you can present your tabular data. Discover how to make your tables better, easier to understand, and more effective.
 
Check out WordTips: Terrific Tables today!