Where 1 represents the minimum permitted number of intervening characters and 10 represents the maximum permitted number of intervening characters.ĭo note that wildcard Find expressions are case-sensitive so, if a word might be in, say, title case, you'd need something like:Īs for reversing the word order, that would require two Find operations. MatchWildcards = True) and, in the Find statement, an expression like: (If you don’t understand HTML, don’t worry. Like in the most popular applications, to find a text in the document, you can use the Ctrl+F shortcut. For example, let’s say you need to add the HTML italic tags and around anything formatted with italic. To help you in finding some text in the document, Word offers two different options.StrFnd = "dog|cat|pig|this, that or something else|horse|man"Īs for finding two words that are near each other, you'd need to use a wildcard Find (ie. Replacing with Find What Text If you’re faced with a complex task using Microsoft Word’s Find and Replace feature, the Find What Text replacement code may come in handy. If you need to find strings that include commas, you'd need to change the StrFind expression's separators and the Split expression's separators. StrFnd = "dog,cat,pig,this and that,horse,man" For a multi-word string as part of the Find array, you simply input that between the commas.
0 Comments
Leave a Reply. |