eSHEET = CType(eBOOK.ActiveSheet,Microsoft.Office.Interop.Excel.Worksheet)
eSHEET.Cells.Range("A2", "v500").Copy()
how to convert the above lines to c#.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dorababu MekaPosted Dec 13, 2011, 7:28 AM
Microsoft.Office.Interop.Excel.Worksheet worksheet = (Microsoft.Office.Interop.Excel.Worksheet)sheets.get_Item(1);
Microsoft.Office.Interop.Excel.Range rangeData = worksheet.get_Range("A2", "v500").copy(your destination object);
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.range.copy(v=office.11).aspx
Gomathi PalaniswamyPosted Dec 13, 2011, 7:09 AM
VulpesPosted Dec 13, 2011, 7:08 AM
Jaganathan BantheswaranPosted Dec 13, 2011, 6:57 AM
Here you can convert the codes from VB to C#
VulpesPosted Dec 13, 2011, 6:38 AM
Incidentally, it would help with questions like this if you said what version of C# you are using.
Gomathi PalaniswamyPosted Dec 13, 2011, 6:33 AM
VulpesPosted Dec 13, 2011, 5:54 AM
Gomathi PalaniswamyPosted Dec 13, 2011, 5:47 AM
VulpesPosted Dec 13, 2011, 5:15 AM