Excel - finding values that “look like”

前端 未结 3 1695
渐次进展
渐次进展 2021-01-16 12:08

I have an excel workbook with a ton of sheets. In the first sheet \"users\" i have userdata, firstname, lastname, email, etc. all neatly split from a CSV file. In the other

3条回答
  •  逝去的感伤
    2021-01-16 12:27

    you can use the VBA LIKE operator with wildcards perhaps?

    If activecell.text LIKE "*Paul*" then ...
    

    and also, as Floris has pointed out, you would need Option Compare Text set at the top of the module to ensure your test isn't case-sensitive

提交回复
热议问题