dear all¤j¤j -
1. cells(5,3)=Q15108A-CO1-01-J001EM
cells(6,3)=Q15030A-CS5T1-01-T002 ............
2.¤p§Ì©ó cells(5,18)®Ñ¼g¨ç¼Æ§ì¨ú=MID(C5,SEARCH("-",C5)+1,SEARCH("-0",C5)-SEARCH("-",C5)-1)
µ{¦¡¤U°Õ§¡ok
3.¤µ·QÂà´«¬° vba.
3.1 ¦p¹Ï¤@ mid³¡¥÷¼g§Ì®Ñ¼gok ¦ý SEARCH³¡¥÷¤£·|¼g.¦p¹Ï¤@Mid(Sheet2.Cells(X, 3), 9, 3)¤§ 9 »P 3
¦p¦ó¤Uvba
4.·Ð¤£§[½ç±Ð thanks*10000
¹Ï¤@Sub µ{¦¡VBA()
Y = Sheet2.[A65536].End(xlUp).Row
' On Error Resume Next
For X = 5 To Y
If 1 = 1 Then
Sheet2.Cells(X, 18) = Mid(Sheet2.Cells(X, 3), 9, 3)
End If
Next
End Sub |