經安全檢測,此網站為安全網站,請放心前往原始網址!

Automate Excel » VBA: Find Text in a String (instr)

You can use the instr function in VBA to test if a string contains certain text. The result is the number of times the specified text appears in the string. The following code snippet tests the string “Look in this string” for the word “Look”. The result

www.automateexcel.com

網址安全性掃描由 google 提供