how to copy selction

  • Thread starter Thread starter Chimanrao
  • Start date Start date
C

Chimanrao

how do I copy selected cells from one workbook to another?
I am using com based plugin where I on click of a button I create a new
workbook and copy the selection from the active sheet to this new
workbook.

regards
Chimanrao
 
Hi Chimanrao - I can't recall the code exactly, but when I am trying to do
something like this I use the record macro facility and then adjust the code
to make it work exactly the way I want.

any help?

Regards

Andrew
 
Hi Chimanrao - I can't recall the code exactly, but when I am trying to do
something like this I use the record macro facility and then adjust the code
to make it work exactly the way I want.

any help?

Regards

Andrew
 
Range("B7:C8").Select
Selection.Copy
Sheets("Sheet2").Select
ActiveSheet.Paste

The macro looks like this,but not sure how I am going to map it to COM
objects.
In my case the user can select any cell he chooses.
 

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