Excel – Moving selected cell data in excel right or left without using cut + paste or, copy and paste. Move data with arrow keys would be great

microsoft excelvbaworksheet-function

Hi I would like to know how to run a VBA or macro (or any other simpler way) to shift the values only of any current selection (varying from one cell in one row to multiple cells and selections across rows, columns) in excel to the right one column or left one column.

In short, I am preparing a forecast sheet for an architecture practice. It works in the same way as Microsoft project with rows of timelines shown over a number of monthly columns. when a project timeline shifts I need to be able to select a row of data, single or multiple cells and move the selected data only over by one column. It would be great to remove the data from the previous cell location also (cut and paste data only in essence)

  1. I can't use copy and paste as it duplicated the data
  2. select and drag on the edge of bounding box with the four star cursor takes the formulas, connections and formatting

See photo attached – imagine the two 50% allocations in Apr-19 and May-19 need to push out to begin in July. Simply, I want to select those cells and shift the data only – as if using the right arrow key (or left arrow key) to move the data only like tetris.

Look forwarding to hear your suggestions
enter image description here

Best Answer

Is Paste Special what you're looking for? This is what the Paste dropdown looks like in Excel 2007:

enter image description here

It's not clear to me why a simple cut and paste won't work for you (maybe that it will carry the cell highlighting/formatting? But you didn't really say that was your issue), so I'm not certain this will solve your problem, but it offers a number of options to refine your paste. Note that if you don't want to duplicate data, use cut (Ctrl+X) instead of copy (Ctrl+C).

Related Question