Windows 10, Excel 365
I'm trying to get just the last subfolder name in a path:
C:\ABC\DEF\ABC.txt will give me ABC
I need: C:\ABC...\WTH\ABC.txt or
C:\DEF...\WTH1\ABC.txt
to give me WTH or WTH1.
I'm trying to get away from the 40 pound path: C:\ABC...\WTH\.
I'm trying to remove multiple files (same or similar names) from multiple folders. My macro gives me all the 40 pound names...
Thank you
I'm trying to get just the last subfolder name in a path:
C:\ABC\DEF\ABC.txt will give me ABC
I need: C:\ABC...\WTH\ABC.txt or
C:\DEF...\WTH1\ABC.txt
to give me WTH or WTH1.
I'm trying to get away from the 40 pound path: C:\ABC...\WTH\.
I'm trying to remove multiple files (same or similar names) from multiple folders. My macro gives me all the 40 pound names...
Thank you