3/16/2023 0 Comments Quick word search on macMsgBox Prompt:="The score is " & iScore & _ SUnused = "The following words and phrases" & _ SUnused = "All words and phrases were used." SUnused = sUnused & vbCrLf & WordList(i - 1) ' Counts the number of words in the array "proper", "fix", "compound", "high and dry") WordList = Array("Mr.", "jelly", "wince", _ ' each word or phrase in quotation marks and ' Enter the words or phrases in the array below Another rather unique approach is to reverse the assumptions about the student compositions: assume that they use each of the words or phrases (they start with a score of 20 if there are twenty words and phrases) and only subtract points if they don't use one of them. The code in this page can be changed, relatively easily, to search for a series of words or phrases and display all the results at once. The page indicates that the code is for Word 2000, but it will work just fine with Word 2007 and Word 2010. One good example of how this can be done is found in the Microsoft Knowledge Base: That means that you must rely on repeated searching and counting in the macro itself. As far as I have been able to determine, this value is not accessible. It would be very convenient if the number of occurrences displayed in the Find and Replace dialog box was accessible through VBA. Indeed, a macro is a more practical approach. These techniques, while handy, lose some of their charm if you need to repeat it for twenty words and phrases in thirty-five different student compositions. Word shows you, at the top of the Navigation task pane, how many occurrences it located of your word or phrase.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |