Este fórum está sendo desativado

Depois de 9 anos, este fórum será desativado. Mas calma.... estamos migrando para uma comunidade no DISCORD. Junte-se a nós.

ENTRAR PARA DISCORD

Tópicos relacionados a códigos VBA, gravação de macros, etc.
Por kakamotasjc
#46896
Bom dia!

Estou precisando de ajuda para inserir quebra de linha (ALT+ENTER) em várias linhas do Excel, manualmente fica inviável.

Exemplo: Tenho várias linas com as seguintes informações:

Linha 1 - Nome: Maria Francisca Idade: 30 anos Sexo: feminino Telefone: 1239562145

Linha 2 - Nome: Eduardo Alves Idade: 45  Sexo: Masculino Telefone: 012981556841

Preciso que fique da seguinte forma:

Linha 1 - Nome: Maria Francisca

                Idade: 30 anos

                Sexo: feminino

               Telefone: 1239562145

Linha 2 - Nome: Eduardo Alves 

                Idade: 45 

                Sexo: Masculino

               Telefone: 012981556841



Tentei da seguinte forma:

Range("M2").Select
    ActiveCell.FormulaR1C1 = _
        "Nome: " & Chr(10) & "Idade: " & Chr(10) & "SExo:  " & Chr(10) & "telefone:  " 
    Range("M2").Select

o código é inviável, pois é executado somente em uma linha e os dados após o título são apagados, retornando:

Linha 1 - Nome: 

                Idade: 

                Sexo: 

               Telefone: 



Podem me ajudar? 
Por kakamotasjc
#46923
Boa tarde!



Achei uma forma mais simples através de formula;

=CONCATENAR($A$1;": ";A2;" ";CARACT(10);$B$1;": ";B2;" ";CARACT(10);$C$1;": ";C2;" ";CARACT(10);$D$1;": ";D2;" ";CARACT(10);$E$1;": ";E2;" ";CARACT(10);)
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]

Estamos migrando para uma comunidade no Discord