When copying more than 250 cells and pasting via the excel clipboard, the formatting (like fill colour) doesn't carry over, but on the first ever use of the clipboard, formatting was copy-pasted correctly for over 250 cells.
Steps to reproduce:
- Select and copy more than 250 cells
- Open the clipboard using this button clipboard button on excel
- Paste by clicking on the item shown in the clipboard list
On the first use, the formatting will be copied correctly, however, any subsequent copying of over 250 cells will only keep the value, and partial formatting. Restarting the application or the computer doesn't fix this, but I've reproduced the behaviour on a second machine whose excel clipboard was never opened.
Originally, I used this to copy cells with conditional formatting (but only the values and formatting, without the conditions); another trick to copy the formatting without the conditions was to copy it to a word file, and then back to excel, but this method seems to work less when dealing with large amounts of data.
249
cells.VBA
as well?echo.|clip
, but it didn't seem to fix the issue. I believe excel uses another method to store the data in the clipboard once the latter has been opened at least once, because the first copy (251+ cells with correct formatting) can be pasted several times, even after another selection has been copied. @MayukhBhattacharya it's not very important but, it works for 250, and not for 251