
Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!

Private Sub Worksheet_SelectionChange(ByVal Target As Range) Static AncAdress As Long 'Se a função Ativar/Desativar foi implementada, adicionar a linha abaixo If ActivationLigne Then Exit Sub If Target.Count > 1 Then Exit Sub If AncAdress <> 0 Then 'repor em normal Rows(AncAdress).Interior.ColorIndex = xlNone Rows(AncAdress).Font.ColorIndex = 0 End If Target.EntireRow.Font.ColorIndex = 6 Target.EntireRow.Interior.ColorIndex = 3 Target.EntireRow.Interior.Pattern = xlSolid AncAdress = Target.Row End Sub