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. Visual Basic
  4. Excel Interop with Existing File?

Excel Interop with Existing File?

Scheduled Pinned Locked Moved Visual Basic
tutorialcsharpcomhelp
3 Posts 2 Posters 1 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.
  • H Offline
    H Offline
    halhamilton
    wrote on last edited by
    #1

    I've found numerous examples on doing interop by creating a NEW Excel file, but would like to open an existing Excel file from VB.NET and interop with that. I've tried "guessing" how to modify the examples, but with no luck. Can anyone point me to an example of how to open an existing Excel file in VB.NET so I can interop with it? Thanks for any help on this...:confused: Hal in AZ

    J 1 Reply Last reply
    0
    • H halhamilton

      I've found numerous examples on doing interop by creating a NEW Excel file, but would like to open an existing Excel file from VB.NET and interop with that. I've tried "guessing" how to modify the examples, but with no luck. Can anyone point me to an example of how to open an existing Excel file in VB.NET so I can interop with it? Thanks for any help on this...:confused: Hal in AZ

      J Offline
      J Offline
      Jim Matthews
      wrote on last edited by
      #2

      hey hal, try...

      myExcel.Workbooks.Open(pathToFile)

      hope this helps


      -jim

      H 1 Reply Last reply
      0
      • J Jim Matthews

        hey hal, try...

        myExcel.Workbooks.Open(pathToFile)

        hope this helps


        -jim

        H Offline
        H Offline
        halhamilton
        wrote on last edited by
        #3

        Jim, Worked fine. Thanks very much! Funny that out of 3 different books no one mentioned this. Thanks again, Hal Hal in AZ

        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