Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Delete same Rows/Columns from two worksheets at a time

Hi friends,

How to Insert/delete same Rows/Columns from two worksheets at a time?
Is there a way to capture the Insert/delete Rows/Columns? so I can
insert/delete in both sheets on that event. One way is to group two
worksheets (But I want only Insert/Delete not other operations). The
solution for this is to group at the time of insert/delete and then
ungroup it. But I dont want to Group-Ungroup everytime.

Thanks & Regards,

Vinit

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,081
Default Delete same Rows/Columns from two worksheets at a time

Vinit -

If you are talking about doing this in code, using an array of sheets is
fast and simple

Dim ws As Worksheet
For Each ws In Sheets(Array("Sheet1", "Sheet2"))
Rows("10:11").Delete Shift:=xlUp
Next

Doesn't group the sheets - just acts on all the sheets in your array

"Vinit" wrote:

Hi friends,

How to Insert/delete same Rows/Columns from two worksheets at a time?
Is there a way to capture the Insert/delete Rows/Columns? so I can
insert/delete in both sheets on that event. One way is to group two
worksheets (But I want only Insert/Delete not other operations). The
solution for this is to group at the time of insert/delete and then
ungroup it. But I dont want to Group-Ungroup everytime.

Thanks & Regards,

Vinit


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Delete same Rows/Columns from two worksheets at a time

Duke,

I want it on Excels Row/Column delete event invoked by right click .

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
How to delete or copy alternative rows/columns at a time? Bhagavan Excel Discussion (Misc queries) 0 May 12th 08 07:31 PM
Delete all rows below certain value on multiple worksheets? [email protected] Excel Discussion (Misc queries) 1 January 4th 08 05:51 PM
Add or Delete Rows in Protected worksheets NH Excel Discussion (Misc queries) 0 March 16th 06 05:15 PM
delete rows from multiple worksheets dckrause Excel Worksheet Functions 1 June 1st 05 03:24 AM
Using VBA to delete certain worksheets rows avilla Excel Programming 1 September 7th 04 04:34 PM


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