|
-
Dec 4th, 2007, 01:22 PM
#4
Thread Starter
Lively Member
Re: Remove text from String
 Originally Posted by MartinLiss
Here's a better way.
Code:
Dim MyString As String
Dim lngIndex As Long
MyString = "www.newfoundland.com/help/431234.html"
lngIndex = InStrRev(MyString, "/")
MyString = Left$(MyString, lngIndex - 1)
MsgBox MyString
Thanks! It works perfectly
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|