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. Excel 2000

Excel 2000

Scheduled Pinned Locked Moved C#
question
6 Posts 3 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.
  • M Offline
    M Offline
    Marix
    wrote on last edited by
    #1

    When I try to access Excel 2000 cell values from my applicaton I allways get the same result - "System._ComObject". What is it??? How can I get the cell value itself? What I do is ExcellWorkbook.Names.item(22,0,null).RefersToRange.Cells[1,1].ToString()!!!!

    P 1 Reply Last reply
    0
    • M Marix

      When I try to access Excel 2000 cell values from my applicaton I allways get the same result - "System._ComObject". What is it??? How can I get the cell value itself? What I do is ExcellWorkbook.Names.item(22,0,null).RefersToRange.Cells[1,1].ToString()!!!!

      P Offline
      P Offline
      Philip Fitzsimons
      wrote on last edited by
      #2

      .Value ?


      "When the only tool you have is a hammer, a sore thumb you will have."

      E 1 Reply Last reply
      0
      • P Philip Fitzsimons

        .Value ?


        "When the only tool you have is a hammer, a sore thumb you will have."

        E Offline
        E Offline
        Eric Gunnerson msft
        wrote on last edited by
        #3

        I think it's actually .Value2...

        P 1 Reply Last reply
        0
        • E Eric Gunnerson msft

          I think it's actually .Value2...

          P Offline
          P Offline
          Philip Fitzsimons
          wrote on last edited by
          #4

          ah, silly me ;P


          "When the only tool you have is a hammer, a sore thumb you will have."

          E 1 Reply Last reply
          0
          • P Philip Fitzsimons

            ah, silly me ;P


            "When the only tool you have is a hammer, a sore thumb you will have."

            E Offline
            E Offline
            Eric Gunnerson msft
            wrote on last edited by
            #5

            What were you thinking? Who could possibly expect that the value would be stored in "Value"?

            P 1 Reply Last reply
            0
            • E Eric Gunnerson msft

              What were you thinking? Who could possibly expect that the value would be stored in "Value"?

              P Offline
              P Offline
              Philip Fitzsimons
              wrote on last edited by
              #6

              I guess thats why I'm not allowed to design frameworks... p.s. how is this going to be handled in .net? is their an artical dealing with how the framework will handle this?


              "When the only tool you have is a hammer, a sore thumb you will have."

              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