LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Custom event handler? i.e. Before row delete

Objective: When I delete a row on one sheet, I want to delete that same row
on two Other sheets.

I don't believe the "Worksheet_Change" handler will work unless there was
some way to test if a row was deleted...

I was wondering if there was a way to create custom event handlers (i.e.
BeforeRowDelete).

Psuedo code would look something like:
Private Sub Worksheet_BeforeRowDelete(Blah Blah Blah...)
myRow = ActiveCell.Row
Sheets("Some Sheet").Rows(myRow).Delete
Sheets("Some other Sheet").Rows(myRow).Delete
End sub

 
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
Event handler VBA Noob[_4_] Excel Programming 4 April 26th 06 03:49 PM
API calls, an Event handler, custom menu bar and modal DrivenByHim Excel Programming 1 February 9th 06 01:12 AM
Global event handler?? [email protected] Excel Programming 1 October 23rd 04 05:31 PM
where is the workbook_open event handler??? Steff_DK[_10_] Excel Programming 2 April 25th 04 02:43 PM
Cell Event Handler David Excel Programming 3 January 19th 04 04:51 PM


All times are GMT +1. The time now is 10:29 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"