Edit - Copy with Headers

Ribbon bar. Select the Edit tab. In the Clipboard/Data group, click the Copy arrow, and from the menu, select Copy with Headers...

Classic menus. From the Edit menu, select Copy with Headers...

...to copy the contents of the currently selected (highlighted) cells in the spreadsheet to the Clipboard. Selecting this command copies not only the contents in the selected block of cells in a spreadsheet, but also the case and variable names associated with the selected cells. (Use Copy to copy the only the selected spreadsheet block without the row and column names). Copy with Headers replaces the previous contents of the Clipboard with the contents of the selected cells. See What is the difference between copy and copy with headers? for an illustration.