Visual Basic.NET
  Home arrow Visual Basic.NET arrow Understanding Object Binding in VBA
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC.NET

Understanding Object Binding in VBA
By: Nilpo
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-07-22

    Table of Contents:
  • Understanding Object Binding in VBA
  • Early Binding
  • Late Binding
  • An object lesson

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Understanding Object Binding in VBA


    (Page 1 of 4 )

    Microsoft’s Office products allow you to create powerful macros using Visual Basic for Applications (VBA) in an object-oriented environment. Much of the power presented by VBA is in its ability to use third-party and COM objects to expand upon the codebase that the environment presents. Unfortunately, this is also a common point of confusion for many VBA developers. Today I’m going to give a little “object lesson” to better help you understand how objects work and the different ways of implementing them in your code.

    Before we begin, there are a few concepts that you need to understand.  Objects are nothing more than external code classes that can be made available for extending your own application.  For example, if I were writing a simple calculator application, I might use a third-party math object that contained common mathematical operations.  Making use of this pre-written object would prevent me from having to create all of those math functions myself, allowing me to develop my application much more quickly.

    From a programming standpoint, objects represent code classes.  A class is simply a group of related properties, methods, and events that are often reusable in other, future applications.  In the past, developers would have to save these classes and maintain their own libraries, where they could cut and paste code they had written in the past into a new application.  As application development evolved over time, this process was simplified into a public system known as the Component Object Model, or COM.

    The Component Object Model provided a means for developers to create and share reusable objects, or code classes.  The most common of these COM objects are code pieces used by the Windows operating system that Microsoft has made available to programmers developing software for the Windows platform.  However, many third-party software packages will also install COM objects that other developers may build their own applications around.

    More Visual Basic.NET Articles
    More By Nilpo


     

    VISUAL BASIC.NET ARTICLES

    - User-defined Functions using Visual Basic Ap...
    - Understanding Object Binding in VBA
    - Mastering the Message Box
    - Testing a Windows Forms Application
    - Using Visual Basic.NET Features to Code a Wi...
    - Correcting Code in a Windows Forms Applicati...
    - Write Readable Code and Comments for Windows...
    - How to Code and Test a Windows Forms Applica...
    - Adding Features to a Windows Forms Applicati...
    - How to Design a Windows Forms Application
    - LINQ to XML Programming Using Visual Basic.N...
    - Understanding Delegates using Visual Basic.N...
    - Create a Sudoku Puzzle Generator using VB.NET
    - Entity Creation and Messaging in a VB.NET Te...
    - Movement and Player Statistics in a VB.NET T...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek