I have 2000+ files to sort. The naming convention is a # sign plus 5 digits, then a space, then a variable length string, then " - " followed by a three character month and four digit year w/ no spaces in between the month and year.
e.g. "#12345 Filename Arbitrary Word Selection - mar2005.pdf"
I need to be able to sort by the first 6 characters, and the last 7 characters, minus the ".pdf" or other extention. What would be an easy way to do this in VBA? I figured I could just read the filename with a string function that returns the character at a certain position in the string, but I cant find the function anywhere, and im getting frustrated. If anyone can help me out, id appreciate it.
2006-07-10
04:58:06
·
2 answers
·
asked by
brian h
1
in
Computers & Internet
➔ Programming & Design