Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, all,
I have not found any solution about how to use Copy & Paste function of _Worksheet in Excel program sample. Dose anyone could help me, I would be a happy guy. Thanks! -- Thanks & Best Regards Daniel |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Daniel Xu wrote:
Hi, all, I have not found any solution about how to use Copy & Paste function of _Worksheet in Excel program sample. Dose anyone could help me, I would be a happy guy. Thanks! You can make your own samples by using "Tools | Macros | Record Macro" Sub Macro1() ' ' Macro1 Macro ' Macro recorded 21/11/2003 by Steve Garman ' ' Range("C2:D4").Select Selection.Copy Range("E10").Select ActiveSheet.Paste End Sub -- Steve Garman |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
HI, I mean use VC6.0 (MFC), not VB, how to translate?
Range("C2:D4").Select Selection.Copy Range("E10").Select ActiveSheet.Paste I can see these code in Excel Macro. but I never found any help document or API explain in the website. Do you have any information? Thanks! -----Original Message----- Daniel Xu wrote: Hi, all, I have not found any solution about how to use Copy & Paste function of _Worksheet in Excel program sample. Dose anyone could help me, I would be a happy guy. Thanks! You can make your own samples by using "Tools | Macros | Record Macro" Sub Macro1() ' ' Macro1 Macro ' Macro recorded 21/11/2003 by Steve Garman ' ' Range("C2:D4").Select Selection.Copy Range("E10").Select ActiveSheet.Paste End Sub -- Steve Garman . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I know how to do about it, it's simple, :-)
COleVariant varRange2; varRange2.vt = VT_DISPATCH; V_DISPATCH(&varRange2) = (LPDISPATCH)range2; V_DISPATCH(&varRange2)-AddRef(); range1.Copy(varRange2); Thanks at all! "Daniel Xu" ???? ... HI, I mean use VC6.0 (MFC), not VB, how to translate? Range("C2:D4").Select Selection.Copy Range("E10").Select ActiveSheet.Paste I can see these code in Excel Macro. but I never found any help document or API explain in the website. Do you have any information? Thanks! -----Original Message----- Daniel Xu wrote: Hi, all, I have not found any solution about how to use Copy & Paste function of _Worksheet in Excel program sample. Dose anyone could help me, I would be a happy guy. Thanks! You can make your own samples by using "Tools | Macros | Record Macro" Sub Macro1() ' ' Macro1 Macro ' Macro recorded 21/11/2003 by Steve Garman ' ' Range("C2:D4").Select Selection.Copy Range("E10").Select ActiveSheet.Paste End Sub -- Steve Garman . |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() And how to use Range::PasteSpecial(...), MSDN dose not have any information about this, where can I find some doc? -----Original Message----- Hi, all, I have not found any solution about how to use Copy & Paste function of _Worksheet in Excel program sample. Dose anyone could help me, I would be a happy guy. Thanks! -- Thanks & Best Regards Daniel . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Paste selected Range from Excel to Outlook with Disclaimer Statement & Signature | Excel Discussion (Misc queries) | |||
copy selected rows to second worksheet (NOT Cut + Paste) | New Users to Excel | |||
Macro to copy & paste-special-values data to selected worksheets | Excel Discussion (Misc queries) | |||
copy and paste range of cells excluding hidden data in excel | Excel Discussion (Misc queries) | |||
How I can copy / paste a selected cells to other columns in Excel | Excel Discussion (Misc queries) |