+ Reply to Thread
Results 1 to 4 of 4

Early vs Latebinding is one better than the other?

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Early vs Latebinding is one better than the other?

    Hi,

    A question came up in one of my other threads concerning "early vs latebinding". I use dictionaries a lot now in my code and i have been using "latebinding".

    What are the advantages / disadvantages of using one vs the other?

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Early vs Latebinding is one better than the other?

    Here are few links

    http://peltiertech.com/Excel/EarlyLateBinding.html

    https://msdn.microsoft.com/en-us/library/0tcf61s1.aspx

    http://programmers.stackexchange.com...d-late-binding

    In a nutshell, Generally speaking Early binding is faster than late binding, you have access to auto complete so it is easy to code as you get help from VBA, ie you do not need remember all the methods and properties you are accessing.
    But you need to reference the object by going to tools which means a person receiving your code should reference the object, otherwise, they will get an error "A user defined object is not defined". Late binding can work with any version with out referencing the object.
    Last edited by AB33; 02-01-2015 at 12:44 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Early vs Latebinding is one better than the other?

    I had the same question. See: http://www.excelforum.com/excel-prog...e-binding.html
    *******************************************************

    HELP WANTED! (Links to Forum threads)
    Trying to create reusable code for Custom Events at Workbook (not Application) level

    *******************************************************

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Early vs Latebinding is one better than the other?

    mc84excel,
    Thank you for posting the link! A year is a long time in VBA.
    I now see the benefit of early binding of using Intellisense. I am getting old, so can not remember some of properties and methods of an object. ADO is the case in point.

+ 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. Loop finishing too early!!
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-16-2013, 01:23 PM
  2. [SOLVED] Macro stops too early - Help!
    By cossie2k in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-25-2012, 10:15 AM
  3. LateBinding and "Type not found"
    By Hung in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2008, 09:49 AM
  4. Value calculated too early
    By Sirishgreen in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-27-2007, 10:58 AM
  5. End sub early if mismatch
    By achidsey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2005, 03:30 PM

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