Wellington Junior Posted June 7, 2018 at 11:42 AM Report #610890 Posted June 7, 2018 at 11:42 AM Bom dia pessoal, estou com muito dificuldade em realizar um código no vba, preciso que me traga apenas os números de uma coluna com número e palavras. Alguém poderia me ajudar? Exemplo: Coluna 1 Coluna 2 2014 2014 carro 2014896 2014896 6598742 moto 6598742 Avião
Estuardo Posted July 31, 2018 at 10:44 PM Report #611472 Posted July 31, 2018 at 10:44 PM Private Function GetNumbers(s as string) As String On Error GoTo ErrHandler Dim s As String Dim i As Integer i = VBA.CInt(s) GetNumbers = i Exit_Here: Exit Function ErrHandler: GetNumbers = 0 Resume Exit_Here End Function
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now