View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
McManCSU[_20_] McManCSU[_20_] is offline
external usenet poster
 
Posts: 1
Default Help with getting first letter of a string


All I want is to see what the first letter of a string is. And then do
an if then set of statements. I have found a few things out there, but
nothing really really simple popped up. Anyone know a simple way to do
it?

ie:

If feeder(0) = "F" Or feeder(0) = "R" Then
Tsetup = 1
ElseIf feeder(0) = "S" Then
Tsetup = 2
Else
Tsetup = 3
End If


--
McManCSU
------------------------------------------------------------------------
McManCSU's Profile: http://www.excelforum.com/member.php...o&userid=24379
View this thread: http://www.excelforum.com/showthread...hreadid=391933