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
#70254
Pessoal, alguem sabe se é possível

Ao clicar em uma linha da coluna D ou E
Automaticamente pintar a linha da coluna B
Que contem a mesma informação da coluna F

Ex.: Na imagem está selecionado a célula D7, então ele pintaria a célula B12 que é a mesma informação da F7
Pintaria uma cor genérica, não precisa ser a mesma da coluna F7

Imagem
Editado pela última vez por AndreSpecker em 13 Abr 2022 às 13:43, em um total de 1 vez.
#70258
#
Cole uma cópia do código abaixo no módulo da planilha de interesse.
#
Código: Selecionar todos
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
 Dim c As Range
 [B4:B50].Interior.Color = xlNone
 If Intersect([D4:E50], Target) Is Nothing Or Cells(Target.Row, 6).Value = "" Then Exit Sub
 Set c = [B4:B50].Find(Cells(Target.Row, 6))
 If Not c Is Nothing Then c.Interior.Color = vbYellow
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