How to use Visual Basic for Applications to count the occurrences of a character in a selection in Excel (89794)
The information in this article applies to:
- Microsoft Office Excel 2003
- Microsoft Excel 2002
- Microsoft Excel 2000
- Microsoft Excel 97 for Windows
- Microsoft Excel 2004 for Mac
- Microsoft Excel X for Mac
- Microsoft Excel 2001 for Mac
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q89794 SUMMARY
In Microsoft Excel, you can use a macro to count the occurrences of a
specific character in a cell or range of cells. This article contains
a sample macro to count the occurrences of a specific character in a
cell or range of cells.
You can also use a formula to accomplish the task. If you prefer not
to use a macro, click the following article numbers to view the articles in the
Microsoft Knowledge Base: 187667 Formulas to count the occurrences of text, characters, or words in Excel for Mac
REFERENCES
For more information about how to obtain help with Visual Basic for Applications, click the following article numbers to view the articles in the Microsoft Knowledge Base:
305326
List of programming resources for Visual Basic for Applications
226118 List of resources that are available to help you learn Visual Basic for Applications programming
163435 Programming resources for Visual Basic for Applications
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbcode kbhowto kbProgramming KB89794 |
---|
|