Forum > VB.NET et VB 2005
'Dans ThisWorkbook Option Explicit Private Sub Workbook_Open() LastRow = Cells(Cells.Rows.Count, "A").End(xlUp).Row End Sub
Public LastRow, LastRow_2 As Integer
'Dans la feuille active Option Explicit Private Sub Worksheet_Calculate() LastRow_2 = Cells(Cells.Rows.Count, "A").End(xlUp).Row If LastRow_2 < LastRow Then MsgBox "La ligne est supprimée!" ElseIf LastRow_2 > LastRow Then MsgBox "La ligne est ajoutée!" End If LastRow = Cells(Cells.Rows.Count, "A").End(xlUp).Row End Sub Private Sub Worksheet_Change(ByVal Target As Range) Worksheet_Calculate End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question