PC Review


Reply
Thread Tools Rate Thread

Copy/Paste Using 2000

 
 
Tim Rush
Guest
Posts: n/a
 
      11th Jun 2008
Since we still have a lot of systems using Office 2000, I'm forced to write
code for that. I have the following:
Rows(r).Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Unfortuantely the CopyOrigin or more exact the xlFormatFromLeftOrAbove is
not recognized as valid within 2000, but works fine in my 2003. Can anyone
suggest another method of duplicating a line above the selected cell
(formulas only, not the data).

Tim
 
Reply With Quote
 
 
 
 
Jim Cone
Guest
Posts: n/a
 
      11th Jun 2008
Tim,
Rows(r).Copy Rows(r + 1)
--
Jim Cone
Portland, Oregon USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Tim Rush"
wrote in message
Since we still have a lot of systems using Office 2000, I'm forced to write
code for that. I have the following:
Rows(r).Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Unfortuantely the CopyOrigin or more exact the xlFormatFromLeftOrAbove is
not recognized as valid within 2000, but works fine in my 2003. Can anyone
suggest another method of duplicating a line above the selected cell
(formulas only, not the data).
Tim
 
Reply With Quote
 
Jim Cone
Guest
Posts: n/a
 
      11th Jun 2008

This is the complete version...
Rows(r + 1).Insert shift:=xlDown
Rows(r).Copy Rows(r + 1)
--
Jim Cone
Portland, Oregon USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)
 
Reply With Quote
 
Tim Rush
Guest
Posts: n/a
 
      12th Jun 2008
Thans Jim, unfortuantely, that duplicates the line. I want to insert a blank
line with all the formatting of the line above it. Carry down the
conditional formats and formuals.


"Jim Cone" wrote:

>
> This is the complete version...
> Rows(r + 1).Insert shift:=xlDown
> Rows(r).Copy Rows(r + 1)
> --
> Jim Cone
> Portland, Oregon USA
> http://www.realezsites.com/bus/primitivesoftware
> (Excel Add-ins / Excel Programming)
>

 
Reply With Quote
 
Jim Cone
Guest
Posts: n/a
 
      12th Jun 2008
You cannot "carry down" formulas and not expect them to return a result,
no matter what XL version you use.
The following keeps cell formatting / conditional formatting intact...
'--
Rows(r + 1).Insert shift:=xlDown
Rows(r).Copy Rows(r + 1)
Rows(r + 1).ClearContents
--
Jim Cone
Portland, Oregon USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Tim Rush"
wrote in message
Thans Jim, unfortuantely, that duplicates the line. I want to insert a blank
line with all the formatting of the line above it. Carry down the
conditional formats and formuals.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
EXCEL 2000 - COPY & PASTE FUNCTIONS! jamesfc30@earthlink.net Microsoft Excel Misc 5 12th Jul 2006 07:02 PM
Copy and paste from Word 2000 to Outlook 2000 =?Utf-8?B?VG9vbmVy?= Microsoft Outlook Discussion 0 13th Sep 2005 09:32 AM
word 2000-- copy and paste =?Utf-8?B?U2hhZG93UmlkZXI=?= Microsoft Word Document Management 1 14th Dec 2004 11:19 PM
Excel 2000 - bug with copy & paste? Simon Microsoft Excel Misc 2 11th May 2004 09:11 PM
XL 2000 LOCKS UP CUT/COPY/PASTE Laurie Microsoft Excel Crashes 1 17th Apr 2004 10:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:13 AM.