Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey,
Does anyone know how to copy all cell contents from a Sheet to the clipboard? I tried: Excel.ApplicationClass oExcelApp; oExcelApp = new Excel.ApplicationClass(); oExcelApp.DisplayAlerts = false; oExcelApp.Workbooks.Open(fileName.ToString(), System.Reflection.Missing.Value, false, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, true, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, false, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value); Excel.Range range = oExcelApp.Cells; range.Select(); object dest = new object(); range.Copy(dest); <- i got a nice Exception here :-( Thanks Dudes |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Merging Cells from C# and Interop | Excel Programming | |||
Copy & paste cells fr open worksheet then close the worksheet | Excel Programming | |||
Copy (removing blank cells) without clipboard | Excel Programming | |||
worksheet change event with .NET interop | Excel Programming | |||
using the clipboard to avoid VBA / Interop | Excel Programming |