Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Working with Excel

Working with Excel

Scheduled Pinned Locked Moved C#
csharpwpfcomhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    A M SOMAN
    wrote on last edited by
    #1

    I have a VB 6 code with me. The code is playing with excel. It generates worksheets and adds templates to them, sets cell values, etc. I want to rewrite the entire code into C#.Net. For that I have used Microsoft Excel 11.0 COM reference. (This is same in VB6). The problem is that I cannot find code in C#.Net equivalent to VB6 counterpart. Examples are given below: oBook.Worksheets("General") or this oSheet.Rows(2).Copy oSheet.Rows(i) There are many examples like this. Either I don't know how to write this in .Net or there is no equivalent. Does anybody know, where I can learn how to use Excel in .Net 2003 in good amount of depth so that I can convert any code in VB6 to .Net 2003? Regards Anil

    J 1 Reply Last reply
    0
    • A A M SOMAN

      I have a VB 6 code with me. The code is playing with excel. It generates worksheets and adds templates to them, sets cell values, etc. I want to rewrite the entire code into C#.Net. For that I have used Microsoft Excel 11.0 COM reference. (This is same in VB6). The problem is that I cannot find code in C#.Net equivalent to VB6 counterpart. Examples are given below: oBook.Worksheets("General") or this oSheet.Rows(2).Copy oSheet.Rows(i) There are many examples like this. Either I don't know how to write this in .Net or there is no equivalent. Does anybody know, where I can learn how to use Excel in .Net 2003 in good amount of depth so that I can convert any code in VB6 to .Net 2003? Regards Anil

      J Offline
      J Offline
      JoeSharp
      wrote on last edited by
      #2

      hi anil look at this example http://www.codeproject.com/office/package.asp regards

      A 1 Reply Last reply
      0
      • J JoeSharp

        hi anil look at this example http://www.codeproject.com/office/package.asp regards

        A Offline
        A Offline
        A M SOMAN
        wrote on last edited by
        #3

        Joe, Thanks! That was a nice article. That solved my Worksheet("abc") problem. Regards, Anil

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups