Docsity

Comando Excel Selecionar Linhas, Esquemas de Engenharia Civil

Toggle sidebar
bg1
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

Pré-visualização parcial do texto

Baixe Comando Excel Selecionar Linhas e outras Esquemas em PDF para Engenharia Civil, somente na Docsity!

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