Cut and Paste Entire Table (5.9.7)
Asked by Stephen Kairys:

**Confluence 5.9.7 under Win10:**

I need to move an entire table from one place in a page to another. I would imagine the process involves selecting all rows, beyond that point:

1. How do I select an entire row?
2. How do I select multiple rows so all are selected? (In other words, how do I select the entire table?)

Btw, I am willing to do the following if it works:

1) Create a new table with the identical number of rows/columns.  
2) Select the entire table.   
3) Copy to new location.  
4) Remove the old table.

Thanks,

Steve


Answers:
author: Stephen Deutsch
body: Here's what I would recommend:

Simply select from the left side of the leftmost column in the table in the row you want to select (if it's the whole table, it would be the top left cell), and then simply keep the mouse button held down and move the mouse towards the right or down (if the whole table, towards the bottom right cell). The cells should start to turn a shade of light blue, and once you have chosen the cells you want, you can let go of the mouse button.

Once you have done this, you should be able to press Ctrl+X to cut the content.

Then move the cursor to the place you want the table/rows to go, press Ctrl+V, and then your table should be inserted.

comments: author: Stephen Kairys
body: Nice. It worked for me. Thank you!


author: brettveen
body: This doesn't work for large tables with embeded macros in the cells of the table... like code blocks.

Please provide a better way to cut, copy, and paste entire tables ...or give up back a way to edit the markup of a page.


author: Barry Gallagher
body: Hi Brett,

The approach I took was to follow the steps that Stephen Deutsch set out above. However, before pressing Ctrl+V, I created a new single cell table and then used the paste table row.


author: Rajendra Seera
body: Hi Stephen, I have had the similar problem and tried to figure out as below:

1. Place the cursor on line above the table

2. Start the selection from the start of above line till the end of line below the table

3. This should select the first line, table and the last line.

4. Now hit Ctrl + C.

5. Place the cursor on the page where you want the table to pasted and hit Ctrl + V.

6. Now you should have the two lines and table pasted. Remove any unwanted lines.

This worked for me, hope it helps you too !!!


author: Koral Ilgun
body: Only Rajendra's solution worked for me. i.e. start the selection one line above the table. Otherwise, the table contents are copied without the table formatting.


author: Ajeya Anand
body: Rajendra's solution is the one which worked. Thanks.


author: Kelvin Lush
body: Echoed here - Only Rajendra's solution works. The answer should be updated to reflect this.


author: Daniel De Juan
body: I've found that it's much easier to select the table for copying when the source page is in published or preview mode than when it is in edit mode. In edit mode, it behaves really strangely when you drag the mouse over it (not highlighting the selection, etc.). Hope this helps!


author: Dan Bennett
body: Thanks [@Daniel De Juan](/t5/user/viewprofilepage/user-id/3536329) , this was super simple to do and worked perfectly!


author: Tina Maddox
body: Yes, thank you [@Daniel De Juan](/t5/user/viewprofilepage/user-id/3536329) your method worked!


author: Andrey Khaneev _StiltSoft_
body: Hello Stephen,

If you are using [Table Filter and Charts](https://marketplace.atlassian.com/plugins/com.stiltsoft.confluence.plugin.tablefilter.tablefilter/server/overview) add-on, you can use a [Copy Table](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Pivot+table+macro#HowtousePivottablemacro-CopyingatableintoPivotTablemacro) button to copy any table to the clipboard in a single click.

comments: author: Stephen Kairys
body: Thanks, Andrey.

As it truned out, I went with Stephen Deutch's solution from 4/13/2016, but I appreciate your input. :)


author: Matt Loughran
body: I tried Stephen's method and it only pasted the contents of the "copied" table, not the table and contents. Note, before copying I did select the whole table just as Stephen described. I still don't know how to copy and paste an entire table.


author: Rajendra Seera
body: Hi Matt, before copying and pasting the table from excel in Confluence, create an empty table in Confluence with same number of rows and columns as in the excel.

Now try to copy paste the contents in excel to the confluence table. This should work!!!


author: Marius Kymantas
body: Just use browsers developers tool, in EDIT mode navigate to your Confluence table, find a table as HTML object, CUT it, navigate to a page location where you want to put table at, select some html element there, chose to EDIT that element and paste your table HTML before/inside/after your selected element. Works like a charm.


Tags: cloud

confluence-cloud

table