Multiple Rows delete

pradyuthal

Board Regular
Joined
Jul 13, 2005
Messages
212
whenever I delete one row in sheet1 it will simutaneously delete all the related rows in sheet2 which are made with reference to the particular row in sheet1. How is it possible with the help of vba code or anything alse?

Please help me.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Are you deleting it within a Macro or anything?

if you are just right clicking it sounds like you have the Sheet 2 etc highlighted also and thsu whatever you do to sheet 1 will be done on sheet 2 also including deleting.

Regards,
 
Upvote 0
How is the reference coded?

E.g. What columns/cells contain the reference?
How should the matching process be done? Exact reference/ case sensitive etc?
 
Upvote 0
you have precisely guessed intention concerning deletion of rows of another sheet with reference to other sheet by way of highlighting also. whatever I do in a particular cell it will affect the referred to rows in another sheet.

Thanks a lot for getting my problem. Please suggest a suitable solution to the problem.
 
Upvote 0
Ah think I had it slightly wrong

So if you were to delete row 1 on Sheet 1, it would delete row 2 on Sheet 2 as well?

If thats right you can (hopefully) do it without VBA Code. As m.k.johnson says select the first sheet and while holding Shift/Ctrl select the second sheet. This selects both sheets as a group.

Now that both are selected anything you do on one should be mirrored on the other. So deleting rows should delete the corresponding rows on the other?
To get back out of this just select a different sheet and the group should disappear.
 
Upvote 0
Program.xls
ABCD
1102CLOSED
Sheet1


Program.xls
ABCDEFGHIJKLMN
1F O R M - VI
2
3Office of the Sub-Divisional Land & Land Reforms Officer
4Jangipur at Raghunathganj , Dist. - Murshidabad
5
6
7Year of Account :April ,2010March ,2011Rate of Interest :8.00%
8
9Account No.Name of the SubscriberOpening BalanceDeposits during the year (In Rs.)Interest during the year (In Rs.)Withdrawal during the Year (In Rs.)Balance (In Rs.)
10
11
12
13( 1 )( 2 )( 3 )( 4 )( 5 )( 6 )( 7 )
14DLRO/MUR/102CLOSED114356091480123504
15
16
17
18Balance (in words)Rupees One Lakh Twenty Three Thousand Five Hundred Four Only
19
20
21Notes:1)The subscriber is requested to state whether he desires to make any nomination made under the rules of the Fund.
22
232)In case where the subscriber has made no nomination in favour of a member of his family owing to having no family at the time but acquired in family thereafter the facts should be reported to the Head of the Office forthwith.
24
253)The subscriber is requested to satisfy himself as to the correctness of the statement and to bring errors , if any , to the notice of the Head of the Office within six months from the date of receipt .
26
27
28
29
Ledger and Forms


All the rows in sheet ledger & forms are related to the row in sheet1.since the matter has been closed and it is of no use the row in sheet1 is to be deleted by right clicking on it and all rows in sheet ledger&forms will simultaneously be highlighted and deleted. the rows in sheet
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,713
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top