View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Leith Ross[_501_] Leith Ross[_501_] is offline
external usenet poster
 
Posts: 1
Default Using the Find function to get Left or Right data


Hello Glen,

Have you tried using the InStr function? Here is your code with it
inserted...

strDWG = Range("J" & i & "").Value
'dwgNSN = Left(strDWG, 18)
dwgNSN = Left(strDWG, InStr(1, "/", strDWG) - 1)
'dwgMFR = Right(strDWG, 18)
dwgMFR = Right(strDWG, Len(strDWG) - InStr(1, "/", strDWG) )

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=505850