Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Tuition on 'copyorigin'

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Tuition on 'copyorigin'

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tuition Costs Again Sean NWIC[_2_] Excel Discussion (Misc queries) 2 September 2nd 09 10:30 PM
Tuition Costs Sean NWIC Excel Discussion (Misc queries) 1 August 31st 09 10:58 PM
Excel - tuition savings question Kevin Smith Excel Worksheet Functions 2 February 21st 07 05:47 AM
Insert range function and CopyOrigin No Name Excel Programming 7 January 2nd 04 02:33 AM
expression.Insert(Shift, CopyOrigin) ? Alex T Excel Programming 1 September 23rd 03 04:00 AM


All times are GMT +1. The time now is 07:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"