VBA - Use wildcard in path name | Chandoo.org Excel Forums ...
chandoo.org › forum › threadsDec 21, 2015 · The pathname is long, but the basic Idea is I have a path "g:\Admin\1234_Client name\2015reports.xls". 1234 is the client's identification number, and varies for each client. "Client Name" is the clients actual name. I want to find the file by using the identification number, and then use a wildcard for the plan name, the code I'm trying is. Code:
VBA Wildcards - Automate Excel
www.automateexcel.com › vba › wildcardsUsing the hash (#) Wildcard in VBA. The hash (#) wildcard replaces a single digit in a VBA string. We can match between 0 to 9. The code above will loop through all the cells in the Range (“B3:E8”) and will change the color of the text in a cell to RED if a double-digit number is found in that cell.