Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
SheetCalculate event is fired whenever row/col insert/delete is done.
And only calculate function 'Workbook_SheetCalculate(ByVal Sh As Object)' is called in Excel 97. The Object parameter has a Worksheet object. Is there any way i can know what range was deleted/inserted. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've done a Google search for a method:
http://groups.google.co.nz/groups?hl...TKMSFT NGXA13 ---snip--- From: Harlan Grove ) Subject: Capture an Insert Row Worksheet event Newsgroups: microsoft.public.excel.worksheet.functions Date: 2002-06-06 10:28:52 PST D. Guzman wrote... Sorry forgot to mention that the problem was in Excel 2000. So far deleting a row triggers the Worksheet_Change event but it doesn't trigger anything when I Insert a row. I really need to be able to capture that event some how. Any ideas? Worksheet_Calculate and Workbook_SheetCalculate are both triggered by inserting or deleting rows and columns. If you define names referring to a range covering the original used range, say CurrentRng referring to $A$1:$CZ$5000, and PreviousRng storing the address of CurrentRng, then the event handler when triggered could compare the address of CurrentRng to the stored PreviousRng to see if/how it had changed. The event handler would update PreviousRng just before exiting. Combine that with checking the location of ActiveCell, and you could determine where the rows or columns were inserted. Caveat: this REQUIRES automatic recalculation - the Calculate event handlers are triggered when recalc actually occurs. ---snip--- "Von Shean" wrote in message ... SheetCalculate event is fired whenever row/col insert/delete is done. And only calculate function 'Workbook_SheetCalculate(ByVal Sh As Object)' is called in Excel 97. The Object parameter has a Worksheet object. Is there any way i can know what range was deleted/inserted. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2000 formula to dynamically sum adjacent rows and columns whererows inserted/deleted | Excel Worksheet Functions | |||
Change colour of cells when content is altered/changed BUT NOT TO INSERTED OR DELETED ROWS | Excel Discussion (Misc queries) | |||
If a Row is inserted or is a row is deleted then...... | Excel Worksheet Functions | |||
Window 2000 : How to protect a file from being deleted ? | Excel Discussion (Misc queries) | |||
allow users to edit a range in excel 2000 | Excel Discussion (Misc queries) |