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
  • Avatar do usuário
#62540
Olá, Geneci.

Na planilha você colocou C1:U16 mas me parece que você quis dizer C1:U19

opção1 - para rodar o código via botão ou outro meio, instale uma cópia do código abaixo em um módulo comum.
Código: Selecionar todos
Sub ApagaCritB1()
 [C1:U19].Replace [B1], "", xlWhole
End Sub
#
opção2 - para rodar o código automaticamente após alterar manualmente o valor de B1, instale uma cópia do código abaixo no módulo da planilha.
Código: Selecionar todos
Private Sub Worksheet_Change(ByVal Target As Range)
 If Target.Count > 1 Then Exit Sub
 If Target.Address <> "$B$1" Or Target.Value = "" Then Exit Sub
 [C1:U19].Replace [B1], "", xlWhole
End Sub
JCabral, GENECI agradeceu por isso
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