Finding a Character in a String Using VBA

B

BVass

Hi,

I am trying to return an integer for the number of characters from the left
of a string that the character "/" is located.

I need to do this using VBA as I am trying to trim the value of a cell.

Can anyone help?

BVass
 
J

Jim Cone

Use the InStr function...
InStr(start, string1, string2, compare type)

--
Jim Cone
Portland, Oregon USA


"BVass"
<[email protected]>
wrote in message
Hi,
I am trying to return an integer for the number of characters from the left
of a string that the character "/" is located.
I need to do this using VBA as I am trying to trim the value of a cell.
Can anyone help?
BVass
 

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

Top