jorgefilemon
New Member
- Joined
- May 9, 2014
- Messages
- 9
hi guys!
how do i write this in VB
=MID(A1,SEARCH(" ",A1,1)+1,SEARCH(" ",A1,SEARCH(" ",A1,1)+1)-SEARCH(" ",A1,1))
i want to have this formula inside my already created function SKU in VB, I really dont know any VB.
Function SKU(myEntry As String) As String
SKU = Left(myEntry, 3) & _
(THE FORMULA HERE!)
Mid(myEntry, InStr(InStr(myEntry, " ") + 1, myEntry, " ") + 1, 2) & _
Right(myEntry, 2)
End Function
how do i write this in VB
=MID(A1,SEARCH(" ",A1,1)+1,SEARCH(" ",A1,SEARCH(" ",A1,1)+1)-SEARCH(" ",A1,1))
i want to have this formula inside my already created function SKU in VB, I really dont know any VB.
Function SKU(myEntry As String) As String
SKU = Left(myEntry, 3) & _
(THE FORMULA HERE!)
Mid(myEntry, InStr(InStr(myEntry, " ") + 1, myEntry, " ") + 1, 2) & _
Right(myEntry, 2)
End Function