Private Sub CheckBox1_Click()
Dim LR As Long
LR = Cells.Find(What:="*", SearchDirection:=xlPrevious, SearchOrder:=xlByRows).Row
Rows(LR).Interior.ColorIndex = IIf(CheckBox1.Value = True, 6, xlNone)
End Sub
Private Sub CheckBox1_Click()
Dim LR As Long
With Sheets("Hoja de Vida Anillos-Cilindros")
LR = .Cells.Find(What:="*", SearchDirection:=xlPrevious, SearchOrder:=xlByRows).Row
.Rows(LR).Interior.ColorIndex = IIf(CheckBox1.Value = True, 6, xlNone)
End With
End Sub
Private Sub CheckUltMaq_Click()
Dim LR As Long
With Sheets("Hoja de Vida Anillos-Cilindros")
LR = .Cells.Find(What:="", SearchDirection:=xlPrevious, SearchOrder:=xlByRows).Row
.Rows(LR).Interior.ColorIndex = IIf(CheckUltMaq.Value = True, 6, xlNone)
End With
End Sub
Private Sub CheckUltMaq_Click()
Dim LR As Long
With Sheets("Hoja de Vida Anillos-Cilindros")
LR = .Cells.Find(What:="*", SearchDirection:=xlPrevious, SearchOrder:=xlByRows).Row + 1
.Rows(LR).Interior.ColorIndex = IIf(CheckUltMaq.Value = True, 6, xlNone)
End With
End Sub