vba search string position

The solution for “vba search string position” can be found here. The following code will assist you in solving the problem.

‘Position of “DOG” from 8th character, case insensitive
Debug.Print InStr(8, “My Dog is a dog”, “DOG”, vbTextCompare) ‘ 13

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts