# Moving Cells by Drag-and-Drop

/text/scalc/guide/move_dragdrop.xhp
drag and drop; moving cells
cells; moving by drag and drop
columns;moving by drag and drop
moving;cells by drag and drop
inserting;cells, by drag and drop
mw added "columns;"
Moving Cells by Drag-and-Drop
When you drag-and-drop a selection of cells on a Calc sheet, the cells normally overwrite the existing cells in the area where you drop. This is the normal overwrite mode.
When you hold down the Option Alt key while releasing the mouse button, you enter the insert mode.
- In insert mode, the existing cells where you drop will be shifted to the right or to the bottom, and the dropped cells are inserted into the now empty positions without overwriting.
- The surrounding box of the moved cells looks different in insert mode.
  In overwrite mode you see all four borders around the selected area. In insert mode you see only the left border when target cells will be shifted to the right. You see only the upper border when target cells will be shifted down.
  Whether the target area will be shifted to the right or to the bottom depends on the distance between source and target cells, if you move within the same sheet. It depends on the number of horizontal or vertical cells in the moved area, if you move to a different sheet.
- If you move cells in insert mode within the same row (only horizontally), then after insertion of the cells, all cells will be shifted to the left to fill the source area.
In both modes, you can hold down the Command Ctrl key, or Command Ctrl+Shift keys while you release the mouse button to insert a copy or a link, respectively.

Keys pressed while releasing the mouse button
Result
No key
Cells are moved and overwrite the cells in the target area. Source cells are emptied.
Command
Ctrl
key
Cells are copied and overwrite the cells in the target area. Source cells stay as they are.
Command
Ctrl
+Shift keys
Links to the source cells are inserted and overwrite the cells in the target area. Source cells stay as they are.
Option
Alt
key
Cells are moved and shift the cells in the target area to the right or to the bottom. Source cells are emptied, except if you move within the same rows on the same sheet.
If you move within the same rows on the same sheet, the cells in the target area shift to the right, and then the whole row shifts to fill the source area.
Option+Command
Alt+Ctrl
keys
Cells are copied and shift the cells in the target area to the right or to the bottom. Source cells stay as they are.
Option+Command
Alt+Ctrl
+Shift keys
Links to the source cells are inserted and shift the cells in the target area to the right or to the bottom. Source cells stay as they are.