V
vavroom
I'm sure there must be a way to do this, but I really have no idea
what it is. Could some kind soul help me out here?
On a form, I need to extract two bits of text from a file name. The
file name gets loaded in a text box, along with the entire path,
through a common dialogue box that allows the user to browse their
system.
The files will always have the same pattern, but the path before it may
not always be the same.
So, say the content of the textbox is:
C:\full\path\to\12345678_name_xxxxxx.pdf
The pattern is that the file name will always start with 8 numbers,
followed by an underscore. Followed by a person's name, which will
obviously vary in length depending on the name. This is followed by an
underscore, and several numbers.
I need to be able to "lift" the first 8 numbers, as well as the
name, to use elsewhere (the idea is to save some typing, and base
information on the file selected).
I've looked at some of the formulas that manipulate text, but I
can't make head nor tail of it. Help?
Thanks in advance
what it is. Could some kind soul help me out here?
On a form, I need to extract two bits of text from a file name. The
file name gets loaded in a text box, along with the entire path,
through a common dialogue box that allows the user to browse their
system.
The files will always have the same pattern, but the path before it may
not always be the same.
So, say the content of the textbox is:
C:\full\path\to\12345678_name_xxxxxx.pdf
The pattern is that the file name will always start with 8 numbers,
followed by an underscore. Followed by a person's name, which will
obviously vary in length depending on the name. This is followed by an
underscore, and several numbers.
I need to be able to "lift" the first 8 numbers, as well as the
name, to use elsewhere (the idea is to save some typing, and base
information on the file selected).
I've looked at some of the formulas that manipulate text, but I
can't make head nor tail of it. Help?
Thanks in advance