Shifting a selected range of cells to the right or left

TimBlood

New Member
Joined
Oct 28, 2015
Messages
1
I have a spreadsheet that needs to shift a selected range of cells one column to the right or left using an "Advance" or "Delay" button.

Here is the sequence of operation:

1. Activate a button
2. Select the cells beginning 2 spaces from the button's originating cell to 10 spaces from the button's originating cell
3. Shift those good for nothing cells either one cell to the right or left.

Here's the code I have thus far:

Sub
ActiveSheet.Shapes(Application.Caller).TopLeftCell.Select
Range(ActiveCell.Offset(0, 2), ActiveCell.Offset(0, 10)).Select

End Sub

So, I have everything covered except for the shifting part...which is the most important part... Please, someone, help me!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,215,591
Messages
6,125,711
Members
449,252
Latest member
cryss1988

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top