Experimente e veja se atende
Function SoNum(Cell As Range) As String
Dim Ret_Texto As Long
For Ret_Texto = 1 To Len(Cell)
Select Case Asc(Mid(Cell, Ret_Texto, 1))
'se for espaço
Case 32
SoNum = SoNum & Mid(Cell, Ret_Texto, 1)
'se for -
Case 45
SoNum = SoNum & Mid(Cell, Ret_Texto, 1)
'se for /
Case 47
SoNum = SoNum & Mid(Cell, Ret_Texto, 1)
'se for numeros
Case 48 To 57
SoNum = SoNum & Mid(Cell, Ret_Texto, 1)
End Select
Next
End Function
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 04/03/2013 9:00 am