ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Wildcard search for string within a string? (https://www.excelbanter.com/excel-programming/363766-wildcard-search-string-within-string.html)

Ed

Wildcard search for string within a string?
 
I am trying to write a macro that will allow me to put the contents of the
ActiveCell into a string and search that string for all occasions of a
substring using wildcards. The substrings will all start with a capital
letter A, B, C, or D and will all have either one or two numbers. There may
be more than one substring in a string, so I need to loop through the string
to find all occasions.

I'm not sure how to put the wildcard search together? Mid? InStr?
Something else? Any help is appreciated.

Ed




All times are GMT +1. The time now is 06:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com