Finding a Character in a String Using VBA

  • Thread starter Thread starter BVass
  • Start date Start date
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
 
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
 
Back
Top