Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try this idea
right click sheet tabview codeinsert this '-----------copy all below Public numrows Private Sub Worksheet_Change(ByVal Target As Range) newnum = Cells(Rows.Count, "a").End(xlUp).row If newnum numrows Then MsgBox "rows were " & numrows 'your code here and comment out the msgbox lines numrows = newnum MsgBox "rows now " & numrows End If End Sub '------------ -- Don Guillett SalesAid Software "Edwin Martinez" wrote in message ... I need to make a macro that monitors and detects when a new row its added to a worksheet and calls a fuction. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I detect a KEYDOWN event while in a worksheet | Excel Programming | |||
Is there a VBA Event to Detect Change in ActiveCell Focus? | Excel Programming | |||
What event to detect click on UserForm ListBox? | Excel Programming | |||
Detect event if excel is in edit mode. | Excel Programming | |||
How to detect an entire column/row delete event? | Excel Programming |