how do I find all characters that follow a specific character in .

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how do I find all characters that follow a specific character in a string?
Can I use Mid someway?
 
Dave Tyler said:
how do I find all characters that follow a specific character in a
string? Can I use Mid someway?

Example:

Dim strSource As String
Dim strTail As String

strSource = "abcdefghijklm#nopqrstuvwxyz"

' Get all characters following the "#" (not including it).
strTail = Mid(strSource, InStr(strSource, "#") + 1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top