Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Inserting a row in sheet A should Insert a row in sheet B, removing a row in Sheet A should remove the corresponding row in sheet B

Hi,

I need a excel programming which does the following:

Whenever I insert a row in sheet A a corresponding row in sheet B needs to be
inserted. The correspondence is given by a offset to a named top row

When removing a row in sheet A the corresponding row in sheet B should be
removed.

How can I react on insertion and deletion in excel?

Best regards
Hannes

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Inserting a row in sheet A should Insert a row in sheet B, removing a row in Sheet A should remove the corresponding row in sheet B

Hannes,

There is no row insert or delete events to react to, so you need to build a
macro that does the initial delete and handles the consequence, like

myRow = 8
Worksheets("SheetB").Rows(8).entirerow.delete
Worksheets("SheetA").Rows(8).entirerow.delete

and

myRow = 8
Worksheets("SheetB").Rows(8).entirerow.insert
Worksheets("SheetA").Rows(8).entirerow.insert

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Hannes Heckner" wrote in message
...
Hi,

I need a excel programming which does the following:

Whenever I insert a row in sheet A a corresponding row in sheet B needs to

be
inserted. The correspondence is given by a offset to a named top row

When removing a row in sheet A the corresponding row in sheet B should be
removed.

How can I react on insertion and deletion in excel?

Best regards
Hannes



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
copied from web page to excel sheet and cant remove from sheet mitch Excel Worksheet Functions 2 May 4th 10 07:58 PM
copied from web page to excel sheet and cant remove from sheet mitch Excel Worksheet Functions 0 May 4th 10 05:38 PM
excel sheet bootom half sheet goes behind top part of sheet rob Excel Worksheet Functions 2 January 17th 09 01:28 AM
Duplicate sheet, autonumber sheet, record data on another sheet des-sa[_2_] Excel Worksheet Functions 0 May 8th 08 06:56 PM
Finding Info from sheet 1 and removing only those rows from sheet Johnny B[_2_] Excel Discussion (Misc queries) 1 March 28th 07 02:29 PM


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