Hmmmm....
My guess is that InStr actually is working but not giving you what you expect.
Can you post what you are passing to your function please?
Have you altered it from the original function code you posted? If so could you post the actual function you are using?
If you want to look for whole words you could try putting spaces around it after removing punctuation.
Have you tried stepping through your function line by line?
Lisa
Sent: Tue, Aug 21, 2012 3:37 pm
Subject: Re: [ExcelVBA] Re: specfic character pick
whole word lay is itself word and layout not...but Instr is not working "layout"
word. my requirement is to find "lay" and ignore "layout"
please help me.
thanks
[Non-text portions of this message have been removed]
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.
----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA
----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com
----------------------------------
Tidak ada komentar:
Posting Komentar