I have some messy VBA that will search each element of an array for particular words. The array elements may have (likely do have) more text than just that one word that I'm searching for. I've used InStr to cobble together a solution bit it's very clunky and slow. (Rick if you are reading this post, I've not had a chance to read your ExcelFox InStr post yet).
Rather than use my crude loop I'd like to use .find. However the VBA help uses the following syntax:
object.Find(target, startline, startcol, endline, endcol [, wholeword] [, matchcase] [, patternsearch]) As Boolean
But the help info I find on the web uses:
expression.Find(What, After, LookIn, LookAt, SearchOrder, SearchDirection, MatchCase, MatchByte, SearchFormat)
Does anyone know the difference between these two i.e. in what cases are they each used and can I use the first one to look through an array for a string?
Thanks
Rather than use my crude loop I'd like to use .find. However the VBA help uses the following syntax:
object.Find(target, startline, startcol, endline, endcol [, wholeword] [, matchcase] [, patternsearch]) As Boolean
But the help info I find on the web uses:
expression.Find(What, After, LookIn, LookAt, SearchOrder, SearchDirection, MatchCase, MatchByte, SearchFormat)
Does anyone know the difference between these two i.e. in what cases are they each used and can I use the first one to look through an array for a string?
Thanks