I am using the macro below to loop through multiple worksheets in my Excel workbook and delete ones that don't contain the inputted keyword.
Is it possible to modify the code to use a pattern instead of a specific keyword (e.g. using Regex or Like Operator)? For example, looking to keep worksheets that contain SSNs (###-##-####). Once one SSN is found in a worksheet, code can move to the next worksheet.. Thanks.
Please Login or Register to view this content.
Bookmarks