Hello,
I have a question. I am trying to write a VBA function that will capture everything right of a "/" for example if i have the url. abc.biz/abc/preference/abc.php I want to capture everything right of the first "/" so my next cell shows abc/preference/abc.php I know i need to create a function seperating the "/" so I wrote.
Function FullExtension(sStr As String)
FullExtension = Split(sStr, "/")(LBound(Split(sStr, "/")) + 1)
End Function
This grabs abc but I want to capture everything right of the initial "/" and there is no way of determining how many "/" there are so I can't continue the function with +2, +3, +4 etc.
Any help would be appriciated.
I have a question. I am trying to write a VBA function that will capture everything right of a "/" for example if i have the url. abc.biz/abc/preference/abc.php I want to capture everything right of the first "/" so my next cell shows abc/preference/abc.php I know i need to create a function seperating the "/" so I wrote.
Function FullExtension(sStr As String)
FullExtension = Split(sStr, "/")(LBound(Split(sStr, "/")) + 1)
End Function
This grabs abc but I want to capture everything right of the initial "/" and there is no way of determining how many "/" there are so I can't continue the function with +2, +3, +4 etc.
Any help would be appriciated.