Results 1 to 4 of 4

Thread: [RESOLVED] Missing "Imports Excel"

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2012
    Posts
    9

    Resolved [RESOLVED] Missing "Imports Excel"

    Hi Guys!

    I'm currently trying to import data from an Excel document to a list in Visual Basic 2010 Express. The Idea is to have the data easily modifiable by the users. I have looked quite a bit online and all of the examples seem to reference either an "Imports Microsoft.Office.Interop.Excel" or "Imports Excel". When I try to use the I get "(no correction suggestions)". I don't have any idea on how to fix this. Any suggestions on a solution would be greatly appreciated!

    Thanks!

    PS I have just started using Visual Basic last week and have almost no previous programming experience so any suggestions on resources where I could learn more would be awesome!

  2. #2
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    Re: Missing "Imports Excel"

    You have to add a reference using the project\add reference menu item

  3. #3
    Junior Member
    Join Date
    Apr 2011
    Location
    Belgium
    Posts
    31

    Re: Missing "Imports Excel"

    You have to make a reference to the Microsoft.Office.Interop.Excel (find this on the .NET tab)
    You can select Excel version depending on which version of Excel installed on your pc.

    Wath out ! Excel needs to be installed on your pc.

    Then in your code use : Imports Microsoft.Office.Interop.Excel

    Hope this help,
    Kurt

  4. #4

    Thread Starter
    New Member
    Join Date
    Jun 2012
    Posts
    9

    Re: Missing "Imports Excel"

    Thanks! That's exactly what I needed.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width