SynonymInfo.MeaningCount property (Word)
Returns the number of entries in the list of meanings found in the thesaurus for the word or phrase. Returns 0 (zero) if no meanings were found. Read-only Long.
Syntax
expression. MeaningCount
expression An expression that returns a 'SynonymInfo' object.
Remarks
Each meaning represents a unique list of synonyms for the word or phrase.
The lists of related words, related expressions, and antonyms aren't counted as entries in the list of meanings.
Example
This example checks to see whether any meanings were found for the selection. If any were found, the list of meanings is displayed in the Immediate window of the Visual Basic Editor.
Set mySynInfo = Selection.Range.SynonymInfo
If mySynInfo.MeaningCount <> 0 Then
myList = mySynInfo.MeaningList
For i = 1 To Ubound(myList)
Debug.Print myList(i)
Next i
Else
Msgbox "There were no meanings found."
End If
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for