Copy an entire range

  • Thread starter Thread starter Mircea Pleteriu
  • Start date Start date
M

Mircea Pleteriu

Hi,

How to copy a range from one Excel document to another.
I know the coordonates within the destination document where the range has
to be copied from the source document.

Thanks a lot,
Mircea
 
Do you mean something as simple as

Workbooks("Book1").Worksheets("Sheet2").Range("A1:H100").Copy _
Destination:=Workbooks("Book2").Worksheets("Sheet1").Range("A1")


--

HTH

RP
(remove nothere from the email address if mailing direct)
 
It fails with the error message:

"Copy method of Range class failed."

My code is C# code.
 
Well that is VBA, you will need to adapt, I don't do C#

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
thanks,

Bob Phillips said:
Well that is VBA, you will need to adapt, I don't do C#

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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

Back
Top