Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Rather than cut and paste rows, if there a way to select a range of
cells and just move them up or down a set number of rows? (I say a range of cells, because on some sheets each record may contain more than one row of data) The Pseudo code below gives an idea of the context of what I am doing. The * line is the one in question. IF cut and paste is the best way, could you post the cut and paste method? Compare code IF need to move up THEN SELECT Rows for this Record. *MOVE SELECTED Range up or down # of rows. * END IF |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub moveselection()
Selection.Cut Cells(ActiveCell.Row - 4, 1).Insert End Sub -- Don Guillett SalesAid Software "None" wrote in message ... Rather than cut and paste rows, if there a way to select a range of cells and just move them up or down a set number of rows? (I say a range of cells, because on some sheets each record may contain more than one row of data) The Pseudo code below gives an idea of the context of what I am doing. The * line is the one in question. IF cut and paste is the best way, could you post the cut and paste method? Compare code IF need to move up THEN SELECT Rows for this Record. *MOVE SELECTED Range up or down # of rows. * END IF |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Please fix your system date. You're messing up the newsgroups sorting.
-- Kind regards, Niek Otten Microsoft MVP - Excel "None" wrote in message ... | Rather than cut and paste rows, if there a way to select a range of | cells and just move them up or down a set number of rows? (I say a | range of cells, because on some sheets each record may contain more | than one row of data) The Pseudo code below gives an idea of the | context of what I am doing. The * line is the one in question. IF cut | and paste is the best way, could you post the cut and paste method? | | Compare code | IF need to move up THEN | SELECT Rows for this Record. | *MOVE SELECTED Range up or down # of rows. * | END IF | |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could use the Range object's Delete or Insert method with the
appropriate number of rows. -- Regards, Tushar Mehta www.tushar-mehta.com Excel, PowerPoint, and VBA add-ins, tutorials Custom MS Office productivity solutions In article , says... Rather than cut and paste rows, if there a way to select a range of cells and just move them up or down a set number of rows? (I say a range of cells, because on some sheets each record may contain more than one row of data) The Pseudo code below gives an idea of the context of what I am doing. The * line is the one in question. IF cut and paste is the best way, could you post the cut and paste method? Compare code IF need to move up THEN SELECT Rows for this Record. *MOVE SELECTED Range up or down # of rows. * END IF |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need help about some basic stuff | New Users to Excel | |||
SUM - IF formula, basic stuff I can't do! | Excel Discussion (Misc queries) | |||
IF THEN stuff to search-paste-copy rows Help??? | Excel Programming | |||
Very small macro/VBA stuff, deleting rows. | Excel Programming | |||
Basic Stuff. | Excel Programming |