Early Vs Late Binding In VBA

Поділитися
Вставка
  • Опубліковано 25 лип 2024
  • When we make our programs available, there is a high likelihood that it will be run on different versions of office. Why does the version of Office matter? The reason why is because our scripts can break because they may be referencing a different version of the application. In this video, we discuss the concept of early versus late binding and how we use this concept to make our code work across different versions of Office.
    Video Resources:
    --------------------------------------------------
    Resource: GitHub File
    Link: github.com/areed1192/sigma_co...
    Resources:
    --------------------------------------------------
    Facebook Page: / codingsigma
    Facebook Group: / sigmacoding
    GitHub Sigma Coding: github.com/areed1192/sigma_co...
    Support Sigma Coding:
    --------------------------------------------------
    Patreon: / sigmacoding
    Amazon Associates: amzn.to/3bsTI5P **
    Related Topics:
    --------------------------------------------------
    Title: How To Use Select Statements In VBA
    Link: • How To Use Select Stat...
    Title: Exploring Data Types In VBA
    Link: • Exploring Data Types I...
    Title: For Loops In VBA
    Link: • For Loops In VBA
    Title: Exploring If Statements In VBA
    Link: • Exploring If Statement...
    Title: Early Vs Late Binding In VBA
    Link: • Early Vs Late Binding ...
    Title: Using Arrays In VBA
    Link: • Using Arrays In VBA
    Title: Exploring Operators in VBA
    Link: • Exploring Operators in...
    Title: Exploring Variables In VBA
    Link: • Exploring Variables In...
    Title: Exploring & Customizing the Excel Visual Basic Editor And Recording Macros
    Link: • Exploring & Customizin...
    Title: Introduction To VBA & Enabling The Developer Tab
    Link: • Introduction To VBA & ...
    **Amazon Associates Disclosure:
    --------------------------------------------------
    I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. One of the ways I support the channel is by using Amazon Associates to earn fees on purchases you make. That means when you use the link above, it will track any purchases made from that link and give a small portion of it to the Sigma Coding. I love this approach because it allows you to do what you're already doing (shopping) but also helps support the channels you care about. Also, it makes it where I can invest that revenue to help improve and grow the channel.
    Tags:
    --------------------------------------------------
    #Excel #VBA #EarlyAndLateBinding

КОМЕНТАРІ • 8

  • @cosymedia2257
    @cosymedia2257 3 роки тому +2

    Thank you!

  • @henrikijonkoping4694
    @henrikijonkoping4694 3 роки тому

    Is it possible with code in Excel VBA to tell where on each slide in Powerpoint to postion, say for instance a range?

  • @codingwithjoyk
    @codingwithjoyk 5 років тому

    Will you please post the link for the numbers in the enumeration process? Not sure what to google to get it for myself! =)

    • @SigmaCoding
      @SigmaCoding  5 років тому +3

      Here is the link to MSDN Official Documentation for the PowerPoint Enumerations. Just an FYI, there are multiple enumerations because different objects have different enumerations.
      docs.microsoft.com/en-us/office/vba/api/powerpoint(enumerations)
      Slide Layout:
      docs.microsoft.com/en-us/office/vba/api/powerpoint.ppslidelayout
      Paste Data Types:
      docs.microsoft.com/en-us/office/vba/api/powerpoint.pppastedatatype

  • @watamote8694
    @watamote8694 Рік тому

    Thanks

  • @JNCressey
    @JNCressey 4 роки тому

    any idea why the language was designed this way? why would it lock in a very particular version of the library when it compiles?
    I think an option would be useful, when you go to export it, to tell it to use late binding instead of needing to go through and change all the code.

    • @SigmaCoding
      @SigmaCoding  4 роки тому +1

      It's honestly hard to know and answer. The VBA language is older, so it's hard to say what some of the challenges would've been back then to incorporate the functionality you're talking about. I agree that it would be nice to have some type of option when we export our module to specify whether you want late or early binding. However, the issue would be is that it would have to read your code and know what components used early vs. late. Not impossible, just challenging.