Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlColorIndexNone
ActiveCell.EntireRow.Interior.ColorIndex = 36
ActiveCell.EntireColumn.Interior.ColorIndex = 43
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlColorIndexNone
If Not ToggleButton1 Then
ActiveCell.EntireRow.Interior.ColorIndex = 36
ActiveCell.EntireColumn.Interior.ColorIndex = 43
End If
End Sub
Gruß
' **********************************************************************
' Modul: Tabelle9 Typ: Element der Mappe(Sheet, Workbook, ...)
' **********************************************************************
Option Explicit
Private Sub ToggleButton1_Click()
If Not ToggleButton1 Then
Application.EnableEvents = True
Cells.Interior.ColorIndex = xlColorIndexNone
ActiveCell.EntireRow.Interior.ColorIndex = 36
ActiveCell.EntireColumn.Interior.ColorIndex = 43
Else
Application.EnableEvents = False
Cells.Interior.ColorIndex = xlColorIndexNone
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlColorIndexNone
Target(1, 1).EntireRow.Interior.ColorIndex = 36
Target(1, 1).EntireColumn.Interior.ColorIndex = 43
End Sub
Activewindow.ScrollRow = Selection.Row
Gruß Daniel
' **********************************************************************
' Modul: Tabelle1 Typ: Element der Mappe(Sheet, Workbook, ...)
' **********************************************************************
Option Explicit
Private Sub ToggleButton2_Click()
If ToggleButton2 Then
Cells.Interior.ColorIndex = xlColorIndexNone
ToggleButton2.Caption = "Highlighter aus"
Else
ActiveCell.EntireRow.Interior.ColorIndex = 36
ActiveCell.EntireColumn.Interior.ColorIndex = 43
ToggleButton2.Caption = "Highlighter ein"
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlColorIndexNone
If Not ToggleButton2 Then
ActiveCell.EntireRow.Interior.ColorIndex = 36
ActiveCell.EntireColumn.Interior.ColorIndex = 43
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlColorIndexNone
ActiveCell.EntireRow.Interior.ColorIndex = 36
ActiveCell.EntireColumn.Interior.ColorIndex = 43
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlColorIndexNone
If Not ToggleButton1 Then
ActiveCell.EntireRow.Interior.ColorIndex = 36
ActiveCell.EntireColumn.Interior.ColorIndex = 43
End If
End Sub
Gruß
' **********************************************************************
' Modul: Tabelle9 Typ: Element der Mappe(Sheet, Workbook, ...)
' **********************************************************************
Option Explicit
Private Sub ToggleButton1_Click()
If Not ToggleButton1 Then
Application.EnableEvents = True
Cells.Interior.ColorIndex = xlColorIndexNone
ActiveCell.EntireRow.Interior.ColorIndex = 36
ActiveCell.EntireColumn.Interior.ColorIndex = 43
Else
Application.EnableEvents = False
Cells.Interior.ColorIndex = xlColorIndexNone
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlColorIndexNone
Target(1, 1).EntireRow.Interior.ColorIndex = 36
Target(1, 1).EntireColumn.Interior.ColorIndex = 43
End Sub
Activewindow.ScrollRow = Selection.Row
Gruß Daniel
' **********************************************************************
' Modul: Tabelle1 Typ: Element der Mappe(Sheet, Workbook, ...)
' **********************************************************************
Option Explicit
Private Sub ToggleButton2_Click()
If ToggleButton2 Then
Cells.Interior.ColorIndex = xlColorIndexNone
ToggleButton2.Caption = "Highlighter aus"
Else
ActiveCell.EntireRow.Interior.ColorIndex = 36
ActiveCell.EntireColumn.Interior.ColorIndex = 43
ToggleButton2.Caption = "Highlighter ein"
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlColorIndexNone
If Not ToggleButton2 Then
ActiveCell.EntireRow.Interior.ColorIndex = 36
ActiveCell.EntireColumn.Interior.ColorIndex = 43
End If
End Sub