Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default What is the CopyOrigin parameter for in the Excel VBA insert metho

Any suggestions?

--
Philip
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default What is the CopyOrigin parameter for in the Excel VBA insert metho

Philip,

I found some Google Groups threads with the same question. The second one
hit paydirt. Here is the answer from somebody known only as "djh63."

"There is one use for CopyOrigin ... telling the insert whether to use the
formatting above/below/left/right of the inserted text. The only
value I've seen is xlFormatFromRightOrBelow ... Left/Above is the default.
In fact, that's how I found this thread is searching for a
list of possible values ... not many mentions of this ... had to resort to
recording a macro to figure out the right value for copying from
below ... ;) "

I tried it with this bit of code, and djh63 is right:

Rows("2:2").Insert CopyOrigin:=xlFormatFromRightOrBelow

hth,

Doug


"Philip_plf" wrote in message
...
Any suggestions?

--
Philip



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
How to choose if I use a parameter or not in a parameter query Arnaud Excel Discussion (Misc queries) 0 March 8th 07 01:19 PM
Getting "Too many different cell formats" error - utility or metho SharonP. Excel Discussion (Misc queries) 1 September 19th 05 02:11 PM
capitalization rate mortgage equity analysis formula ellwood metho Sam Perry Excel Programming 0 June 14th 05 07:10 PM
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 05:30 AM.

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

About Us

"It's about Microsoft Excel"