|
-
Dec 4th, 2007, 01:22 PM
#1
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
-
Dec 4th, 2007, 01:28 PM
#2
Re: [RESOLVED] Remove text from String
So does TBeck's and if you change Text1.Text in his to MyString then his is arguably a better (more compact) solution.
-
Dec 4th, 2007, 01:30 PM
#3
Thread Starter
Lively Member
Re: [RESOLVED] Remove text from String
 Originally Posted by MartinLiss
So does TBeck's and if you change Text1.Text in his to MyString then his is arguably a better (more compact) solution.
I'm Sorry I didn't see TBeck's post.
That works perfectly too!
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
|