
Tips.Net > WordTips Home > Macros > WordBasic Examples > Determining the Number of Fonts Available with WordBasic
Summary: Do you need to figure out how many fonts there are available to your document? Here's the WordBasic code to do it. (This tip works with Microsoft Word 6, and Word 95.)
There may be times within your macros when you need to determine the number of fonts available for use. If you are writing your macros using WordBasic, you can use the CountFonts function, as follows:
x = CountFonts()
When finished, x will contain the number of fonts installed and available for use.
Tip #752 applies to Microsoft Word versions: 6 95
Take Control! Experienced users know that styles can make the difference between a plain document and a masterful one. This is the real power behind Word, and the key to that power can be found in WordTips: Styles and Templates.
It doesn't matter if you are a beginner or expert, the WordTips archives are the fastest way to improved productivity. (more information...)
Ask a Word Question
Make a Comment
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