Address of a string: "C: \ Documents and Settings \ Administrator \ デ ス ク ト ッ プ \ 1234. XLSX"
I want to use vba to intercept the last name "1234. XLSX
"
How should do? The previous address is uncertain, how to take
CodePudding user response:
"C: \ Documents and Settings \ Administrator \ デ ス ク ト ッ プ \ 1234. XLSX" is a Variant type,
CodePudding user response:
Mid $(" C: \ Documents and Settings \ Administrator \ デ ス ク ト ッ プ \ 1234. XLSX ", instrrev (" C: \ Documents and Settings \ Administrator \ デ ス ク ト ッ プ \ 1234. XLSX ", "") + 1)
Make a suggestion, don't use the Variant in String has a hidden trouble,
CodePudding user response: