Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() is there a command that will copy the row from the row above it. I' thinking of selection.filldown but i don't know how to adjust th fields so that it only looks 1 row above it i'm planing on using this in a loop for a selection that will scan series of rows and if there is a certain criteria i want it to copy th above row THANK -- narutar ----------------------------------------------------------------------- narutard's Profile: http://www.excelforum.com/member.php...fo&userid=2511 View this thread: http://www.excelforum.com/showthread.php?threadid=46637 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
is there a command that will copy the row from the row above it. I'm
thinking of selection.filldown but i don't know how to adjust the fields so that it only looks 1 row above it Rows(ActiveCell.Row - 1).Copy Rows(ActiveCell.Row) the Copy comman has an optional destination parameter. The code above copies the row one above, to the current row. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
This can be done without a loop. Hope this helps. Sub fill_in_the_blanks() Application.ScreenUpdating = False Columns("A:A").Select '*copy the cell above it and paste the cell from above to here* Selection.SpecialCells(xlCellTypeBlanks).Select Selection.FormulaR1C1 = "=R[-1]C" Application.ScreenUpdating = True End Sub narutard wrote: is there a command that will copy the row from the row above it. I'm thinking of selection.filldown but i don't know how to adjust the fields so that it only looks 1 row above it i'm planing on using this in a loop for a selection that will scan a series of rows and if there is a certain criteria i want it to copy the above row THANKS -- narutard ------------------------------------------------------------------------ narutard's Profile: http://www.excelforum.com/member.php...o&userid=25111 View this thread: http://www.excelforum.com/showthread...hreadid=466376 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() thanks al -- narutar ----------------------------------------------------------------------- narutard's Profile: http://www.excelforum.com/member.php...fo&userid=2511 View this thread: http://www.excelforum.com/showthread.php?threadid=46637 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options | Excel Discussion (Misc queries) | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing | Excel Discussion (Misc queries) | |||
How can I copy a value from a cell and paste it into another cell while adding it to the previous value in that cell | Excel Worksheet Functions | |||
I copy a formula and the results copy from the original cell | Excel Discussion (Misc queries) | |||
VBA to copy to empty cell directly below a cell when analogous cells in different column have same value as each other? | Excel Programming |