VBA -> Aktuelle Zeile markieren

Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Cells.Count > 1 Then Exit Sub End If   Application.ScreenUpdating = False   ' Clear the color of all the cells Cells.Interior.ColorIndex = 0 With Target ' Highlight the entire row and column that contain the active cell .EntireRow.Interior.ColorIndex = 8 End With   Application.ScreenUpdating = True End Sub




Kai Neugebauer 2023/10/16 11:33 → 242

programmierung/select_current_row.txt · Zuletzt geändert: 2023/10/16 11:35 von Kai Neugebauer
GNU Free Documentation License 1.3
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0