+ Reply to Thread
Results 1 to 4 of 4

Early binding reference list, add all?

  1. #1
    Forum Contributor
    Join Date
    08-12-2006
    Posts
    106

    Early binding reference list, add all?

    I'm studying about early binding from an Excel VBA book, and it seems like everywhere is said "create a reference to...". Since I have a lot of programs in my list under tools->references in VBE, should I just check everything so they are referenced? Is there some certain reason why not to do that? Does it slow down my code?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Early binding speeds execution and supports Intellisense. Include only the references you need; why include others?

  3. #3
    Forum Contributor
    Join Date
    08-12-2006
    Posts
    106
    Quote Originally Posted by shg View Post
    Early binding speeds execution and supports Intellisense. Include only the references you need; why include others?
    Well, for example for VSTO there's like 50 different references. How do I know which one I need?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434
    The ones required for most normal coding of the Excel application are automatically included. If you add a userform the MSForms library will be also be included.

    You only need to add references when using something not standard in excel.
    For example if you used excel to automate Powerpoint you would include a reference to the powerpoint library.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. reference to a dynamic cell in a list?!
    By rjmills18 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-16-2008, 09:13 AM
  2. Automated input based on reference list
    By bsw in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-08-2007, 11:31 PM
  3. Trying to create complex list results, using validation lists, etc...
    By semantik in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-28-2007, 07:56 PM
  4. How to reference a list of data?
    By Zaraf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-12-2007, 10:13 PM
  5. Reference List from another sheet
    By dnf999 in forum Excel General
    Replies: 2
    Last Post: 05-01-2007, 05:43 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1