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.
#48710
Bom dia pessoal!

Gostaria de uma macro para a remoção de um determinado filtro. Tenho a seguinte lista de nomes;

CAIO GOMES
CAIO PEREIRA
JOSE LOPES
JOSE MARIA
LUIZ COSTA
JULIO CEZAR

Gostaria apenas tirar o filtro para o nome JULIO CEZAR, porém a minha macro ativa todos os nomes ao invés de apenas retirar o JULIO CEZAR como o exemplo abaixo

ActiveSheet.Range("$B$6:$AD$112").AutoFilter Field:=17, Criteria1:=Array( _
"CAIO GOMES", "CAIO PEREIRA", "JOSE LOPES", "JOSE MARIA", "LUIZ COSTA", "="), _
Operator:=xlFilterValues

Obrigado!
#48727
Experimente:
Código: Selecionar todos
ActiveSheet.Range("B6:AD6").AutoFilter Field:=17, Criteria1:="<>" & "JULIO CEZAR"

'ou se o nome estiver em B1
 ActiveSheet.Range("B6:AD6").AutoFilter Field:=17, Criteria1:="<>" & [B1]
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