Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

excel consultant - macros

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel consultant - Macros

excel consultant - Macros

ResolvedVersion Standard

Tim has attended:
Excel Advanced course

Macros

How do i write a macro to move a range of cells 1 cell to the right. The challenge is that I want to change the range each time I run the macro, so each week I want to move a selection of cells one cell to the right to reflect the latest 4 week average

RE: Macros

Hi Tim

If the range of cells you want to move right is in a column that does not interfere with other data the simplest thing to do is create a macro to:

Select a cell in the current data range

Insert a new column. The code is:

Selection.EntireColumn.Insert

Enter a heading for the new data

Hope this helps

Carlos

Excel tip:

Screen Splitters in Excel

Screen splitter icons can be set from the ribbon bar, or dragged from the scroll bars. The icon just above the up arrow on the right scroll bar controls the horizontal splitter; the icon to the right of the right arrow on the bottom scroll bar controls the vertical splitter.

These icons can be double-clicked to split the screen at the top left of the cell currently in use.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.13 secs.