Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Please can someone tell me what this is used for with the Insert method. I
was hoping to be able to copy the contents of a row, and insert it below the source row using this facility. -- Thanks in advance, Jill C |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jill,
CopyOrigin isn't the range that should be copied prior to insertion, if that is what you were thinking. CopyOrigin takes one of two named constants to determine what format the inserted cell should have: xlFormatFromLeftOrAbove or xlFormatFromRightOrBelow To do what you want, simply use Rows(1).Copy Rows(2).Insert will copy row 1 and insert it above the existing row 2. HTH, Bernie MS Excel MVP "jillc" wrote in message ... Please can someone tell me what this is used for with the Insert method. I was hoping to be able to copy the contents of a row, and insert it below the source row using this facility. -- Thanks in advance, Jill C |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Tuition Costs Again | Excel Discussion (Misc queries) | |||
Tuition Costs | Excel Discussion (Misc queries) | |||
Excel - tuition savings question | Excel Worksheet Functions | |||
Insert range function and CopyOrigin | Excel Programming | |||
expression.Insert(Shift, CopyOrigin) ? | Excel Programming |