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
#49098
Boa tarde a todos !

Não consegui ainda, criar um código que busque as informações em outra planilha e já colocando em ordem decrescente. Segue planilha em anexo detalhando.

Se alguém puder ajudar, agradeço imensamente.

Leandro Moreira
Você não está autorizado a ver ou baixar esse anexo.
#49111
Segue uma sugestão sem Loop.
Código: Selecionar todos
Sub ReplicaDadosAirSpot()
 Application.ScreenUpdating = False
 Sheets("Linhas").[F3:F55] = ""
 With Sheets("Plan2")
  .AutoFilterMode = False
  .[D4:F4].AutoFilter 3, "AIR SPOT"
  .Range("D5:D" & .Cells(Rows.Count, 4).End(3).Row).Copy
  .AutoFilterMode = False
  .[AA1].PasteSpecial xlValues
  .[AA:AA].RemoveDuplicates Columns:=1, Header:=xlNo
  .[AA:AA].Sort Key1:=.[AA1], Order1:=xlDescending
  .Range("AA1:AA" & .Cells(Rows.Count, 27).End(3).Row).Copy
  Sheets("Linhas").[F6].PasteSpecial xlValues
  .[AA:AA] = ""
 End With
 Application.ScreenUpdating = True
End Sub
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