Thank you so very much, Michael. I have the piece of text ("important data") assigned to a variable, but how do I then copy the data from that variable, back to the clipboard? In essence, by the time this macro ends, I'd have "important data" copied to the clipboard. I'm sure it's simple, but I'm a dummy when it comes to any kind of coding. I'm not sure what to do with the variable once I have it.
One more question: is it possible to search for any data between the last underscore within the filename and the .jpg suffix?
I tried using:
_(.+).jpg
But it just searched for the first underscore it came across. Makes sense. I'm just curious if we can make this a little more efficient. The text I need will always come after the last underscore and before the jpg extension.
You're Awesome!!! Everything works! I'm trying not to feature creep here. What you've built for me will already save me a ton of time. Last question, I promise
Can I do a search for the piece of text before the first underscore, and concatenate the 2 searches together? For instance, say I have:
one_two_three_imporant-data.jpg
and I want to end up with the following copied to the clipboard:
one important data
OK, last answer. Please post new questions in a new topic.
Also, in the future, it would be best to present all of your requirements at the beginning.
That will save all of us a lot of time.