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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Dec 13, 2011, 12:15 AM EST
Gomathi PalaniswamyRank #714 · 3.3K reputationPosted Dec 13, 2011, 12:47 AM EST
VulpesRank #55 · 29.2K reputationPosted Dec 13, 2011, 12:54 AM EST
Gomathi PalaniswamyRank #714 · 3.3K reputationPosted Dec 13, 2011, 1:33 AM EST
VulpesRank #55 · 29.2K reputationPosted Dec 13, 2011, 1:38 AM EST
Incidentally, it would help with questions like this if you said what version of C# you are using.
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Dec 13, 2011, 1:57 AM EST
Here you can convert the codes from VB to C#
VulpesRank #55 · 29.2K reputationPosted Dec 13, 2011, 2:08 AM EST
Gomathi PalaniswamyRank #714 · 3.3K reputationPosted Dec 13, 2011, 2:09 AM EST
Dorababu MekaRank #457 · 5.5K reputationPosted Dec 13, 2011, 2:28 AM EST
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