Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Detect new row event

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I detect a KEYDOWN event while in a worksheet Ken Soenen Excel Programming 1 December 15th 05 01:17 AM
Is there a VBA Event to Detect Change in ActiveCell Focus? Larry A[_3_] Excel Programming 4 September 16th 05 03:23 AM
What event to detect click on UserForm ListBox? Don Wiss Excel Programming 1 August 26th 05 10:35 PM
Detect event if excel is in edit mode. Rajeev Excel Programming 2 February 7th 04 02:22 PM
How to detect an entire column/row delete event? MV[_2_] Excel Programming 1 September 10th 03 01:03 PM


All times are GMT +1. The time now is 05:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"