Results 1 to 3 of 3

Thread: What reference should be used?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2014
    Location
    Southern New Jersey
    Posts
    29

    Red face What reference should be used?

    I'm starting to really get into VB.net on Visual Studio 2022. My question is: How do you know you have all the references (Imports) that you should have for a particular program. I'm writing a program to sort certain areas of a Excel spread sheet so I found I needed to include the Microsoft Excel 16.0 object library and the Microsoft 16.0 Office object library. I don't know if I need anything else for the project I'm working on. Is there an easy way to see the parameters that a included library has? I guess this is basic training but new to me. Thanks all.

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    39,750

    Re: What reference should be used?

    Write code. If you don't get any compile time errors about types not being recognized, then you have all the references you need. Don't over think it. Code first, references as you need them.
    My usual boring signature: Nothing

  3. #3
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,352

    Re: What reference should be used?

    Quote Originally Posted by Shaggy Hiker View Post
    Write code. If you don't get any compile time errors about types not being recognized, then you have all the references you need. Don't over think it. Code first, references as you need them.
    The OP posted yesterday that he is getting an error and didn't get any responses from anyone here. I think he is trying to figure out if he needs additional references or if the code is wrong.

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