0

Edit This can be worked around by cutting the text from source cell in the cell-edit mode but it's a bit cumbersome. The paste-in-cell-edit fails even if the target cell is empty.

Excel 2016 + Win 10 20H2

I have noticed lately that copy-pasting in Excel sessions seems to fail often with CTRL-V. The data goes into clipboard correctly but when I hit CTRL-V, nothing happens. Clicking on corresponding line in clipboard pastes the data correctly.

This has started happening more recently, it seems to me that at least copying cells to in-cell-edit fails consistently. So this is one sequence that fails:

  1. Have a cell where I want multiple lines of text
  2. Copy a cell
  3. Add linefeed to the target cell with ALT-Enter
  4. Press CTRL-v

Result: Nothing happens.

Clicking on the clipboard line copies the data as expected. However, if you try to cut + paste, the origin cell won't be cleared this way.

I think this is a "new" change as I started getting annoyed by copy/paste operations starting to fail not that long ago.

Any setting that could help here?

AdamV
  • 6,177
  • 2
  • 22
  • 38
Barleyman
  • 310
  • 2
  • 5
  • 13
  • Please [edit] your question to specify which version of Excel you are using and what operating system. – Ramhound Jul 08 '21 at 12:07
  • Yup, 2016 it is. Even a colleague remarked on a meeting that office copy paste has worked weird lately so it's not just me. – Barleyman Jul 08 '21 at 12:27
  • Does this mean you're using corporate meachines? Ask the IT department about the problem. A shortcut like CTRL+V not working sounds like third-party software causing a problem. If they have recently updated Office 2016 (just saying Office 2016 doesn't indicate what build you are on) your IT department will have to rollback the version to see if the problem is with the build itself. – Ramhound Jul 08 '21 at 12:30
  • The problem combination is a bit hard to pin down as copying and pasting is something you do a lot without thinking much about it. Except when if it fails. Re: rolling back, I can imagine how that would go down, even if we're a quite small outfit with <30 people. I know for sure that PDF - - to - office can fail to "take", possibly some weirdness with foxit. I have to pay attention to the clipboard when this happens which end the problem happens. Hotkey for copying from clipboard would be nice. Same as clicking on the clipboard line that is. – Barleyman Jul 09 '21 at 13:21
  • It takes all of 30 seconds to rollback an Office 2016/2019/365 installation as an Administrator. – Ramhound Jul 09 '21 at 21:46
  • [Here](https://superuser.com/questions/1648424/how-do-i-fix-outlook-only-showing-the-first-line-of-every-message/1648437#1648437) is the command I mentioned – Ramhound Jul 09 '21 at 21:54
  • Here's another copy paste failure method for you. If I copy cell with a formula from Excel, it'll appear on clipboard as expected. But then I go to SharePoint(tm) and try to rename a file with the value (purchase value), it'll fail. Once you go back to Excel in annoyance and bang CTRL-C several times and try SharePoint(tm) again, it'll work. – Barleyman Jul 12 '21 at 15:05

1 Answers1

1

What you describe, literally, in your numbered example set of actions is how Excel has always worked.

When you copy a CELL, whole, Excel will only paste it whole, not inside a cell as part of that cell's contents. Excel has ALWAYS required the "cumbersome" workaround you allude to in order to paste into a cell's contents vs. pasting a whole cell over a whole cell.

Nothing wrong with Ctrl-V in this post.

The "fault" is with Excel. Excel is the one failing to honor the Windows clipboard paradigm.

Normally I would suggest this is due to the particular requirements of spreadsheet work in general except that Word has its own uniqueness where this subject is concerned and both of them have had such from their beginnings.

It's fairly clear that they both had routines written to enable copying and pasting in the days before widespread use of Windows. Not just that, but also, perhaps, to help their ballyhoo-ed interoperability. (Yes, "back in the day" even programs from the same company often had little or no interoperability. That's actually one of the reasons for the Windows clipboard.) And in Excel's case at least, it was also necessary because of the particular complicated world of spreadsheet needs.

Have you ever received the warning that something went wrong with a copy/paste action you took? And that you can still, even in the face of that failure, use the clipboard contents for pasting into other programs. This is why. Excel does place the copied material on the clipboard, but then interjects its own actions when you paste IN EXCEL from that clipboard material. Those actions failed therefore the message, but nothing compromised the clipboard contents, hence the fact that you can still paste it normally into other programs.

Consider this example: you have a formula producing a result. You might want to copy the cell and:

  1. Paste it somewhere else in the spreadsheet. Excel needs to have information to allow it to paste keeping the formula and updating its formula for addressing changes. You might want formatting to follow the paste, or for the original's formatting to be lost after the paste. Excel needs to have information to support keeping formatting if that's your wish.
  2. Paste it somewhere else as a result, not keeping the formula. Excel needs to convert either when placing something on the clipboard to begin with, or take the formula put there by Copy and convert it to a result only in the Paste.
  3. You might wish to use the Copy in some other program (including a fully separate instance of Excel). The standard Paste from the clipboard approach in Windows would be to use the cell's formula's result. Or a portion of it only. Excel must provide for this possibility while providing for it to turn out you want to do 1. or 2., above, instead, or also.
  4. You might edit the cell and Copy from that functionality. In that case, what Excel does is very different from a "straightforward" cell Copy.

(And there could be lots of other things I've not touched upon.)

In furtherance of these needs, Excel places a value on the clipboard and uses itself to keep information for the other needs.

One thing it does not do, and never has done, is to support the numbered action set you give in your post. It flat does NOT support copying a whole cell, then using F2-Edit to paste material from that copying INTO a cell, even if replacing the entire contents of the cell. This is so even though it is abundantly clear what the user would like to do, which is somewhat unexpected as Excel is usually far too incredibly willing to guess such desires and hose you with what it ends up doing. Trés counterintuitive, one might think.

So the cumbersome workaround is not actually a workaround. It is the actual, defined mechanism to perform the action you desire.

I've used Excel since 1992 when I got a "used" copy of the 1.0 (possibly 2.0, but 1.0 sticks in my mind) version from a friend who had decided to stick with 1-2-3. We ourselves stuck with Quattro Pro for a time, but in '93/'94 we committed to changing over. This behavior with copy/paste has been the case at least since then.

(Coming up on 30 years... in several years, I'll have been using Excel, and the internet, for more than half my life... you know, if I make it several more years. Half a lifetime using a program... I guess its "weirdnesses" are actually more the real standard I've been stuck with and not really weirdnesses. Hmm...)

Added after comment:

Office programs have access to something MS calls the Office Clipboard. This is something you have to display a task pane for, or near as I can tell, Copied items do not make it onto it. So find the Home tab in the menu (oh, I must mean the menu they call the Ribbon so they can claim to be menu-less). First section is the Clipboard section: click on the little beastie in the lower right corner and the task pane comes alive.

Now when you Copy, it will go to this pane as well as be available for normal uses. The useful, I hope, to you part is that it holds the last 24 Copies and it will paste them for you if you click on them. (MS says doubleclick, but clicking once seems to work for me.) The useful thing in that is that it is not limited like normal Excel copy and paste mechanisms. No, it will in fact paste appropriately for the situation, at least as far as pasting as a whole cell or pasting INTO a cell.

So copy a whole cell, like normal, and instead of only being able to paste that entire cell somewhere, perhaps in special ways but nonetheless, as a whole cell... instead of that, it will either do that if you just select a cell and tell it to paste, but more importantly, if you Edit a cell, as you wish to, clicking the appropriate Office Clipboard item will paste the cell's value INLINE at your insertion point, OR if you Copied a cell with a formula, it will paste the formula's result INLINE at your insertion point.

Doesn't help if you Copied a cell with a formula and wanted the formula because it will paste the value, but otherwise... it seems like it would basically be what you need. After all, you have to enter Edit mode whatever you do anyway, so that's even-Steven, and you then have to tell Excel to paste somehow so that's sort of even-Steven.

(It WILL paste formulas, just you have to do it the workaround way of entering Edit mode, highlight and Copy the formula, exit, select the pasting cell, enter Edit mode, and finally, Paste the formula. So the Office Clipboard isn't of any tremendous use for that.)

My, my... some experimenting shows that if you are using it and select, then Copy, say, three cells (cells whole, not just contents), the highlight a cell and paste, it pastes in three consecutive cells as one might expect. But if you enter Edit mode in ONE cell, it will paste the three cells' contents in the single cell placing each cell's contents on a separate line in the cell. So Copy three cells and do that and you get one cell with three lines containing the three cell's contents. (And if one of them already had multiple lines, that remains so. So if one had two lines and the other two had single lines, then you get four lines pasting INTO the cell rather than pasting cells. Though the contents of the one that already had two lines will come through wrapped with doublequotes like so:

"1 2df55fh=A1" (second cell) (third cell)

Could be worth your doing some other experiments! But it seems like this basic thing, the Office Clipboard, would make it fairly easy to meet your need.

Jeorje
  • 74
  • 2
  • Fair enough. There are other occasions of this happening e.g. copying from PDF to Excel may not "take", leaving me to hit CTRL-C multiple times in annoyance etc. Same happens to-from Word. But those are harder to pin down than this in-line business. Do you know if there's a shortcut for pasting from clipboard? – Barleyman Jul 09 '21 at 13:18
  • I'm slightly more of a newcomer, office user since -95 or so. WfWG 3.11, good times, good times. Well not even a little but.. – Barleyman Jul 09 '21 at 13:25
  • Yes, I mentioned clipboard. You can in fact make things go to clipboard even if it's not visible, Advanced Options in excel if my memory serves. I was hoping there would be a way to copy latest item from clipboard without clicking on it but I guess no such luck. – Barleyman Jul 11 '21 at 18:53
  • Here's another copy paste failure method for you. If I copy cell with a formula from excel, it'll appear on clipboard as expected. But then I go to SharePoint(tm) and try to rename a file with the value (purchase value), it'll fail. Once you go back to Excel in annoyance and bang CTRL-C several times and try SharePoint(tm) again, it'll work. – Barleyman Jul 12 '21 at 15:04
  • I figured this out finally. It's not limited to excel but a behaviour that (IMO) changed in Windows in general. If you have several windows open and you select text from e.g. a browser that's not active, the copy does *not* "take". That is, if you have another window active and directly "paint" something from the browser and hit CTRL-C, nuh-uh. You have to click on the browser window first to activate it. Or try copying again. I thought this was specific to Excel because I'm often doing copy-paste between Word/Excel/Firefox, but this definitely does happen with Firefox. – Barleyman Oct 20 '21 at 11:15