I'm very new to VBA, and for a macro I'm working on, I'm trying to split out strings of the form:
"Duration: __ Minutes __ Seconds"
I am trying to get the total time in minutes from this. However, if the time is less than a minute then it would look like
"Duration: __ Seconds"
My question is, how would I use the Split function to cover both of these cases? No need to even use split if that's easier, thanks!
So for example, if I had the string "Duration: 6 Minutes 30 Seconds", I expect the result 6.5 and if for the string "Duration: 45 Seconds" I expect 0.75.