Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default how to copy selction

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how to copy selction

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

"Chimanrao" wrote in message
oups.com...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how to copy selction

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

"Chimanrao" wrote in message
oups.com...
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




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default how to copy selction

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.

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
Based on the selction from a drop down box, jump to a cell kmoss Excel Discussion (Misc queries) 1 August 21st 08 05:14 PM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
EXCEL FILE a copy/a copy/a copy ....filename ve New Users to Excel 1 September 29th 05 09:12 PM
Paste Selction In First Empty Cell derekc[_14_] Excel Programming 2 July 1st 04 06:35 PM
Program a drop down list to show a specific response depending on the selction Vita Cator Excel Programming 1 October 30th 03 07:12 PM


All times are GMT +1. The time now is 03:17 PM.

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"