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.
  • Avatar do usuário
#67749
Bom dia pessoal,

Tenho uma seguinte situação.
Código: Selecionar todos
it's too damn rough up here tonight...[END]
Let's get this bird back to earth Phil,[END]
Weatherman[END]
the city I'll hand you back to Jill in the studio...[END]
[END]
On that somber note, and on a rainy, stormy night in[END]
[END]
gostaria de esses END que estão isolados fossem pra cima e deletando em seguida.

ficaria assim:
Código: Selecionar todos
it's too damn rough up here tonight...[END]
Let's get this bird back to earth Phil,[END]
Weatherman[END]
the city I'll hand you back to Jill in the studio...[END][END]
On that somber note, and on a rainy, stormy night in[END][END]
Tentei o seguinte código mas sem sucesso.
Código: Selecionar todos
Sub Check_Me()

Application.ScreenUpdating = False
Dim m As Long
Dim Lastrow2 As Long
Lastrow2 = Cells(Rows.Count, "B").End(xlUp).Row
For m = Lastrow2 To 1 Step -1
    If Cells(m, "B").Value = "[END]" Then "copiar o texto pra linha de cima concatenando para o final dela"
Next
Application.ScreenUpdating = True
End Sub
Pode ser em outro código, desde que eu consiga fazer meu exemplo de cima.
Obrigado, pela atenção.
Editado pela última vez por Rabatini em 26 Out 2021 às 22:50, em um total de 1 vez.
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