Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default Copy to Named Range

I can "Set Range" then "Copy" then "select" then paste as below

If Cells(CCC - 1, 1).Value = Cells(CCC, 1).Value Then
Set MyRange = Cells(CCC, 100).End(xlToLeft).Offset(0, 1)
Range(Cells(CCC - 1, 11), Cells(CCC - 1, 14)).Copy
MyRange.Select
ActiveSheet.Paste

For speed I do not want donot want to select but the following code errors
out

Range(Cells(CCC - 1, 11), Cells(CCC - 1, 14)).Copy Range(Myrange)

--
Message posted via http://www.officekb.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Copy to Named Range

Just off the top of my head, you need quote marks around the range's name in
the Range call...

Range(Cells(CCC - 1, 11), Cells(CCC - 1, 14)).Copy Range("Myrange")

--
Rick (MVP - Excel)



"FIRSTROUNDKO via OfficeKB.com" <u15639@uwe wrote in message
news:a741f16650d8b@uwe...
I can "Set Range" then "Copy" then "select" then paste as below

If Cells(CCC - 1, 1).Value = Cells(CCC, 1).Value Then
Set MyRange = Cells(CCC, 100).End(xlToLeft).Offset(0, 1)
Range(Cells(CCC - 1, 11), Cells(CCC - 1, 14)).Copy
MyRange.Select
ActiveSheet.Paste

For speed I do not want donot want to select but the following code errors
out

Range(Cells(CCC - 1, 11), Cells(CCC - 1, 14)).Copy Range(Myrange)

--
Message posted via http://www.officekb.com

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
Copy cells from named range Melissa Excel Discussion (Misc queries) 2 January 19th 07 08:27 PM
Copy cells from named range Melissa Excel Discussion (Misc queries) 0 January 19th 07 08:15 PM
Can't copy named range [email protected] Excel Programming 4 October 3rd 06 08:17 AM
copy named range to powerpoint confused Excel Worksheet Functions 1 October 17th 05 03:23 PM
copy named range gav meredith Excel Programming 4 April 28th 04 07:41 AM


All times are GMT +1. The time now is 07:27 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"