Copy to Named Range

  • Thread starter FIRSTROUNDKO via OfficeKB.com
  • Start date
F

FIRSTROUNDKO via OfficeKB.com

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)
 
R

Rick Rothstein

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")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top