InStr function (Visual Basic for Applications) | Microsoft Learn
https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/instr-function
Web ResultMar 29, 2022 · This example uses the InStr function to return the position of the first occurrence of one string within another. Dim SearchString, SearchChar, MyPos SearchString ="XXpXXpXXPXXP" ' String to search in. SearchChar = "P" ' Search for "P". ' A textual comparison starting at position 4. Returns 6.
DA: 82 PA: 11 MOZ Rank: 11