Bug 49205 - EDITING: Pasting to autofiltered fields
Summary: EDITING: Pasting to autofiltered fields
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
(earliest affected)
3.5.2 release
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
Whiteboard: BSA
Depends on:
Blocks: AutoFilter
  Show dependency treegraph
Reported: 2012-04-26 23:03 UTC by mahfiaz
Modified: 2020-05-19 06:11 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

Example document for easy testing. (8.36 KB, application/vnd.oasis.opendocument.spreadsheet)
2016-04-17 05:29 UTC, mahfiaz
some tests copy/paste with discontinuos ranges (11.34 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-05-19 06:11 UTC, b.

Note You need to log in before you can comment on or make changes to this bug.
Description mahfiaz 2012-04-26 23:03:30 UTC
Problem description: 
Cannot paste into autofiltered range, because selection is not uniform.

Steps to reproduce:
1. Make a list of repeating numbers in one column such as 1, 2, 3, 4, 1, 2, 3, 4. 
2. Now use autofilter to filter out everything but ones.
3. Let's say you want to copy there your two lines of data from somewhere else. But you cannot, Libreoffice says you cannot paste into multiple selections.

Expected behavior:
Being able to paste into autofiltered sheet to visible fields.

Platform (if different from the browser): 
Browser: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0
Comment 1 bfoman (inactive) 2012-07-17 12:59:21 UTC
Checked with:
Build ID: own W7 debug build
Windows 7 Professional SP1 64 bit

In your example I could paste into filtered fields using Ctrl+V. I just received "cells contain data" warning. However paste commands in right-menu or toolbar buttons are disabled.
Comment 2 mahfiaz 2012-09-06 21:01:00 UTC
LibO 3.6.1, still the same. If you test it just make sure the range you are pasting into contains at least a row, which is filtered out.
Easiest is to copy everything and then paste it into the same place.
Comment 3 mahfiaz 2016-04-17 05:29:19 UTC
Created attachment 124421 [details]
Example document for easy testing.

Still an issue in
Comment 4 mahfiaz 2019-03-30 17:26:59 UTC
Still same in

The error message in Calc is of course much better than Excel 2016-s way of pasting in hidden cells at random (some cells get new content, some don't, visible ones usually do).
Comment 6 b. 2020-05-19 06:11:48 UTC
Created attachment 160989 [details]
some tests copy/paste with discontinuos ranges

misleading ... or improved? 

from the title/subject and the sample and test one could get the impression it's generally impossible to paste data into discontinuos areas ... 

at least with ver and the opposite is true, it is even possible to copy from one discountinuos area to other discountinuos areas, see attached sheet, cases S, U, Y, Z, only some simple cases are blocked, see yellow highlighting in attached sheet, 

why? was a developer 'unusually careful' not to produce errors by automatic extend of the target area? in other cases this is generously accepted, 

of course, a security warning would be desirable beforehand,  

there are! some flaws, see red highlighting in attached sheet, 

the request from this bug works if you select A2:A6 instead of only A2 as target for pasting, maybe that caused the norepro comment #1, 

i'd suggest: 

- enable pasting to 'small targets', 

- replace the option 'yes' from the dialog 'The content of the clipboard is bigger than the range selected. - Do you want to insert it anyway?' by a selection: 
A: 'shrink' - copy partial data to small target area, 
B: 'extend' - copy full clipboard to automatically extended target range, 

not only for copying to autofiltered ranges but in general if target < source in width or height,