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
#62101
Estou tentando fazer um filtro avançado no VBA porém consta esse erro, alguém consegue me ajudar sobre o que significa este erro?

Meu código
Option Explicit

Sub FiltroAdvConcluido()

Dim baseDados As Range, criterios As Range
Dim destino As Range

Set baseDados = RELATORIOSISTEMA.Range("C1").CurrentRegion
Set criterios = RELATORIOSISTEMA.Range("O1:Y2")
Set destino = RELATORIOSISTEMA.Range("O5:V5")

baseDados.AdvancedFilter xlFilterCopy, criterios, destino <- Está dando erro aqui

End Sub

Sub FiltroAdvPendente()

Dim base2 As Range, intC2 As Range
Dim destino2 As Range

Set base2 = RELATORIOFINAL.Range("C1").CurrentRegion
Set intC2 = RELATORIOFINAL.Range("P1:AA2")
Set destino2 = RELATORIOFINAL.Range("P5:V5")

base2.AdvancedFilter xlFilterCopy, intC2, destino2 <- Está dando erro aqui

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