Lindi Ribeiro 0 Posted August 13, 2018 Report Share Posted August 13, 2018 Olá pessoal, Sou novata no VBA e estou com um probleminha queria fazer aquela função de textos para colunas por exemplo selecione a coluna A e separe o texto pelo caractere "-", tentei usando o Split mas não rodou. Quote Link to post Share on other sites
0 Graymalkin 0 Posted August 13, 2018 Report Share Posted August 13, 2018 Faça um teste colocando o texto "teste1-teste2-teste3" na célula A1 e use este código de exemplo: Sub teste() Dim dados() As String Dim d dados = Split(Range("A1").Value, "-") For Each d In dados MsgBox d Next End Sub Abraços! Quote Link to post Share on other sites
0 Lindi Ribeiro 0 Posted August 13, 2018 Author Report Share Posted August 13, 2018 (edited) Obrigada Gender!!! Deu certo sim, só estou tentando fazer executar para toda a coluna, conhece alguma forma. Edited August 13, 2018 by Lindi Ribeiro Quote Link to post Share on other sites
0 Lindi Ribeiro 0 Posted August 14, 2018 Author Report Share Posted August 14, 2018 (edited) . Edited August 14, 2018 by Lindi Ribeiro Quote Link to post Share on other sites
0 Graymalkin 0 Posted August 14, 2018 Report Share Posted August 14, 2018 Muito bom, ainda bem que conseguiu resolver o caso. ☺️ Abraços! Quote Link to post Share on other sites
Question
Lindi Ribeiro 0
Olá pessoal,
Sou novata no VBA e estou com um probleminha
queria fazer aquela função de textos para colunas por exemplo selecione a coluna A e separe o texto pelo caractere "-", tentei usando o Split mas não rodou.
Link to post
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.