Issue 7088 - Add/delete rows/columns across selected sheets
Summary: Add/delete rows/columns across selected sheets
Status: CLOSED FIXED
Alias: None
Product: Calc
Classification: Application
Component: ui (show other issues)
Version: OOo 1.0.0
Hardware: All All
: P3 Trivial with 16 votes (vote)
Target Milestone: ---
Assignee: oc
QA Contact: issues@sc
URL:
Keywords:
: 17045 23263 29847 33402 37427 38598 44945 44967 45010 56384 59098 59969 71788 (view as issue list)
Depends on:
Blocks: 72764
  Show dependency tree
 
Reported: 2002-08-18 07:05 UTC by Unknown
Modified: 2013-08-07 15:14 UTC (History)
9 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
The patch file is about i7088#-v1. (42.24 KB, text/plain)
2008-08-20 07:48 UTC, yonggang.mao
no flags Details
The patch file is about i7088#-v2. (50.70 KB, text/plain)
2008-08-25 10:26 UTC, yonggang.mao
no flags Details
The patch file is about i7088#-v3. (51.28 KB, text/plain)
2008-08-27 08:39 UTC, yonggang.mao
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-08-18 07:05:30 UTC
I am using OO 1.0 for linux.  I am running mandrake 8.2 and ximian-gnome
desktop.  When I select multiple sheets, I can format, add values, formulas,
etc., but I cannot add or delete rows or columns.  I have to do it manually for
every sheet.  Is this a to be added feature, or is it already there?  

Thanks,

Rob
Comment 1 peter.junge 2002-11-28 15:10:06 UTC
Hi Falko,
would be nice to have.
Peter
Comment 2 frank 2003-07-18 10:46:54 UTC
*** Issue 17045 has been marked as a duplicate of this issue. ***
Comment 3 andree 2003-07-18 13:27:11 UTC
As this has been on the back burner for a while and issue 17045 has
been closed as a duplicate of this:

From a user's point of view, I asume that functions I can select from
a menu or otherwise do actually what they say. Now, consider the
situation: I select multiple sheets and use the insert/delete
row/column function. What would one expect? As far as I am concerned
that the program does as told (especially as it allows me to tell it
in the first place).

Therefore, I suggest that insert/delete row/column are being disabled
in the menus and elsewhere if more than one sheet is selected as the
scope for these functions is currently only one sheet, not multiple
sheets. The situation would then be much more in line with the
fundamental design principle of least surprise.

I feel this should ideally happen before 1.1 is released - but then
again I'm just a nagging user. ;-)
Comment 4 falko.tesch 2003-10-08 13:31:23 UTC
When I select multiple sheets, I can format, add values, formulas,
etc., but I cannot add or delete rows or columns.  I have to do it
manually for every sheet. 
This must change.
When I add or delete rows/coumns than this has to happen on all other
selected sheets, too.
Note: A competitor behaves like this, too.
Comment 5 falko.tesch 2003-10-08 13:31:39 UTC
.
Comment 6 bettina.haberer 2003-12-05 17:57:52 UTC
Hello Niklas, please give approval for this evaluated OO.o 2.0 flagged
issue. 
If you confirm with the target OO.o 2.0, then please keep it on your
owner (or the owner of the concerning developer) for implementation.
In case you want this issue for 'OOo Later', then please reset the
target milestone. If you decline the issue finally, please set the
resolution to 'Wontfix' (but do not close). In case of 'OOo Later' or
'Wontfix' please reset it on Bettina's owner. Thank you.
Comment 7 heechee66 2004-05-13 11:24:29 UTC
This is a duplicate of issue 23263. (or the other way round :)
Comment 8 Martin Hollmichel 2004-05-28 15:01:03 UTC
according to the announcement on releases
(http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=7503) this issue
will be re-targeted to OOo Later.
Comment 9 frank 2004-06-04 13:44:00 UTC
*** Issue 29847 has been marked as a duplicate of this issue. ***
Comment 10 frank 2004-09-01 10:43:10 UTC
*** Issue 33402 has been marked as a duplicate of this issue. ***
Comment 11 frank 2004-11-19 09:48:32 UTC
*** Issue 37427 has been marked as a duplicate of this issue. ***
Comment 12 frank 2004-12-08 16:00:28 UTC
*** Issue 38598 has been marked as a duplicate of this issue. ***
Comment 13 frank 2004-12-09 09:04:51 UTC
*** Issue 23263 has been marked as a duplicate of this issue. ***
Comment 14 iannz 2005-02-25 04:17:34 UTC
I too think that when deleting or inserting rows/columns when more than one
sheet is selected should work on all selected sheets. It still doesn't work 1.9.79.

I confess to not having thoroughly tested the following macros - written for
1.1.4 for Linux (but should work for all versions I think). Beware word wrap
there is just one line between for and next.

Sub subDeleteRowsMultipleSheets
oSheets = thisComponent.sheets
on local error goto finished
mRangeAddresses = thisComponent.currentController.selection.rangeAddresses
for i = uBound(mRangeAddresses) to 0 step -1
	oSheets(mRangeAddresses(i).sheet).rows.removeByIndex(mRangeAddresses(i).startRow,
mRangeAddresses(i).endRow - mRangeAddresses(i).startRow + 1)
next
finished:
end sub


Sub subDeleteColumnsMultipleSheets
oSheets = thisComponent.sheets
on local error goto finished
mRangeAddresses = thisComponent.currentController.selection.rangeAddresses
for i = uBound(mRangeAddresses) to 0 step -1
	oSheets(mRangeAddresses(i).sheet).columns.removeByIndex(mRangeAddresses(i).startColumn,
mRangeAddresses(i).endColumn - mRangeAddresses(i).startColumn + 1)
next
finished:
end sub


Sub subInsertRowsMultipleSheets
oSheets = thisComponent.sheets
on local error goto finished
mRangeAddresses = thisComponent.currentController.selection.rangeAddresses
for i = uBound(mRangeAddresses) to 0 step -1
	oSheets(mRangeAddresses(i).sheet).rows.insertByIndex(mRangeAddresses(i).startRow,
mRangeAddresses(i).endRow - mRangeAddresses(i).startRow + 1)
next
finished:
end sub


Sub subInsertColumnsMultipleSheets
oSheets = thisComponent.sheets
on local error goto finished
mRangeAddresses = thisComponent.currentController.selection.rangeAddresses
for i = uBound(mRangeAddresses) to 0 step -1
	oSheets(mRangeAddresses(i).sheet).columns.insertByIndex(mRangeAddresses(i).startColumn,
mRangeAddresses(i).endColumn - mRangeAddresses(i).startColumn + 1)
next
finished:
end sub
Comment 15 frank 2005-03-13 21:52:33 UTC
*** Issue 44945 has been marked as a duplicate of this issue. ***
Comment 16 frank 2005-03-14 08:24:55 UTC
*** Issue 44967 has been marked as a duplicate of this issue. ***
Comment 17 frank 2005-03-14 16:13:46 UTC
*** Issue 45010 has been marked as a duplicate of this issue. ***
Comment 18 frank 2005-11-11 12:32:11 UTC
*** Issue 56384 has been marked as a duplicate of this issue. ***
Comment 19 frank 2005-12-15 13:44:44 UTC
*** Issue 59098 has been marked as a duplicate of this issue. ***
Comment 20 frank 2006-02-01 14:01:29 UTC
*** Issue 59969 has been marked as a duplicate of this issue. ***
Comment 21 f_ellenberger 2006-02-06 15:02:09 UTC
From my view this is not an enhancement, it is a DEFECT. 
 
I LOST HOURS OF WORK! 
 
When I select multiple sheets, it has to work with multiple sheets  
or display a warning like "I am not able to do that".  
Everything else, I used, worked on multiple sheets. So I worked on the wrong 
columns in the not visible sheets. 
 
Sorry, I am a little echauffaged, 
Frank 
 
Comment 22 klaus_kraemer 2006-12-17 09:42:53 UTC
I just lost a bunch of time and work when I tried to insert a line to multiple
sheets and not knowing the less than inlogical behavior of OO-Calc. Thinking of
all selected sheets were added the new line I worked and worked until after an
hour of thinking, typing, formatting (and saving!) I saw the mess.

PLEASE make inserting a line to multiple sheets working like in Exc...

A nice guy gave me a hint of a workaround: Cut and paste - but not the way it
should go all the future...
Comment 23 klaus_kraemer 2007-02-18 10:32:25 UTC
Hi there,

I do not understand, why such a substantial bug - existing for 5 years now - is
not eliminated. My employer - the City of Munich - is planning to change to
LINUX and also OOo. In my department now EXCEL is used intensively and also this
bug would concern not only me, but many of my coworkers.

I think this is a substantial bug which sould have at least Priority P3 ans
should be eliminated before adding some nice to have gimmicks, only few people
are using. This bug costs a lot of productive time, especially when you are used
to work with EXCEL at office and change to OOo...

5 years are a long time...
Comment 24 frank 2007-03-19 11:48:57 UTC
*** Issue 71788 has been marked as a duplicate of this issue. ***
Comment 25 huw 2007-11-14 16:14:35 UTC
Also, Paste special - Move cells right / Move cells down overwrites data on 
other sheets, instead of moving
Comment 26 klaus_kraemer 2007-11-15 19:34:07 UTC
Sorry guys,

taking this issue for "ENHANCEMENT" is some great understatement. I understand 
misworking functions as errors, so this issue type should be really "DEFECT".

The EX**L programmers got it long ago. So go on, please!
Comment 27 yonggang.mao 2008-07-31 15:55:13 UTC
Accepted
Comment 28 yonggang.mao 2008-08-04 06:43:51 UTC
start
Comment 29 yonggang.mao 2008-08-20 07:48:08 UTC
Created attachment 55876 [details]
The patch file is about i7088#-v1.
Comment 30 yonggang.mao 2008-08-25 10:26:18 UTC
Created attachment 55987 [details]
The patch file is about i7088#-v2.
Comment 31 yonggang.mao 2008-08-27 08:39:02 UTC
Created attachment 56035 [details]
The patch file is about i7088#-v3.
Comment 32 niklas.nebel 2008-08-27 16:57:18 UTC
The last patch looks good. This can go into 3.1.
Comment 33 niklas.nebel 2008-10-27 19:20:16 UTC
taking the issue
Comment 34 niklas.nebel 2008-10-27 19:21:15 UTC
I added the last patch to CWS "calc47".
Comment 35 niklas.nebel 2008-12-04 15:48:00 UTC
Reassigning to QA for verification
Comment 36 oc 2008-12-09 14:13:56 UTC
verified in internal build cws_calc47
Comment 37 vladimir_hitekschool 2009-03-31 15:11:56 UTC
Issue 7088 has been fixed in master version OOo-dev 3.1 .0 (OOO310m7 Build:9393) 
for Windows XP.
Comment 38 oleghitekschool 2009-04-01 05:30:13 UTC
Checked and closed by HitekSchool Group 1.