Sure,
But as I wrote in post #3 I also think that regular expressions could be the best way to do it. Anyway, the text deleted as per moderator request (now fulfilled):
Let's start with sidenote: yes
As for other issues: Having nor code neither workbook the answers would be very general. the same is with thje one I already gave: You said "to copy a value from a string before a specific word". But is this string in a cell? or may be already in a variable? or in some dataset?
Going back to sidequestion - having a function allows you treat all above cases the same way: as with buitlt-in functions.
You can use:
but also
or
etc.
You use InStr function the same way.
As for not answered parts: note that I focused on first 3 and some if 4th point - up to "the word Share might not appear at all. " then you can do whatever you want with the result of function - for instance check if it is a number.
And finally - yes, you can of course put all the code inside main procedure (sub).
It could look like (just guessing, as you published no sample file. But now, before publishing, try the codes from this and previous post):
Bookmarks