Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Insert Row Event

I need to catch when the new Rows are inserted or existing rows are Deleted
into the Sheet1.
And When this happed to insert the new Rows in Sheet2
at the same position (with the same row number).

But all that I find is event Worksheet_Change,
and I can not make difference using this event if
the new Rows are inserted or existing rows are Deleted
OR just Copy(rows) command.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Insert Row Event

The only way you can do it is to compare the number of rows og data on each
sheet to determine when they don't match. You also need some column that has
unique values in each row (line an ID number) so you can determine where the
new row was added or deleted.

"miroslj" wrote:

I need to catch when the new Rows are inserted or existing rows are Deleted
into the Sheet1.
And When this happed to insert the new Rows in Sheet2
at the same position (with the same row number).

But all that I find is event Worksheet_Change,
and I can not make difference using this event if
the new Rows are inserted or existing rows are Deleted
OR just Copy(rows) command.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 267
Default Insert Row Event

You could insert a command button or button on custom toolbar that would
trigger a sub to insert a column into both worksheets at the same time.

"miroslj" wrote:

I need to catch when the new Rows are inserted or existing rows are Deleted
into the Sheet1.
And When this happed to insert the new Rows in Sheet2
at the same position (with the same row number).

But all that I find is event Worksheet_Change,
and I can not make difference using this event if
the new Rows are inserted or existing rows are Deleted
OR just Copy(rows) command.

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
Before Worksheet Insert Event Excel Monkey[_2_] Excel Programming 0 April 14th 09 08:59 PM
Sheet Change Event (Insert Row) WCM Excel Programming 2 July 24th 07 11:46 PM
Sheet Insert Row Event? WCM Excel Programming 1 July 24th 07 08:26 AM
Insert Row (Event Classification) WCM Excel Discussion (Misc queries) 3 June 11th 07 01:34 PM
catch event insert a row or delete a row Nader Excel Programming 2 July 21st 06 06:38 AM


All times are GMT +1. The time now is 08:01 PM.

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

About Us

"It's about Microsoft Excel"