Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8757179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:14:34+00:00 2026-06-13T14:14:34+00:00

I am learning vba and now I am trying to start using classes because

  • 0

I am learning vba and now I am trying to start using classes because I see that otherwise my programs are too hard to work with and I always writing the similar pieces of code over and over.

Can you recommend any book that covers user-defined objects in vba well? Because everything that I found just gives a short introduction on this subject.

While I was searching for such a book, I found a lot of advanced books on vb.net. As I understood this language is more “powerful” (can be used for wider variety of tasks).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:14:36+00:00Added an answer on June 13, 2026 at 2:14 pm

    When you want to learn about VBA, look for references on VB6. You can probably find lots of references and books for cheap. I consider myself very good at VBA, and this is how I learned a lot. Even the newest version of VBA (VBA7) is esentially a subset of VB6. Most of what you can learn about VB6 is completely applicable to VBA, particularly in regards to classes and UDTs (which are kind of like structs in the .NET world).

    • Start at the source — MSDN: Visual Basic 6.0
    • When you search, use VB6 rather than VBA if you’re not finding what you need, for example:
      • Google: “vb6 class inheritance” –> http://www.freevbcode.com/ShowCode.asp?ID=2970

    From my own experience I would say that user-defined types (declared using the Type keyword) are rarely useful except for private use within in a single module for the purpose of native function declarations which require a pointer to a certain structure. Their fundamental drawback is that they cannot be cast to and from Variant, which is a killer for advanced VBA. Once you get used to it it’s not too hard to quickly build a class (a class module in com VB lingo) with the same fields.

    Post script: This will not help you when learning about classes or user defined types, so I add this merely as a post script: You can also find lots of good information by searching for VBScript. Most VBScript can be pasted directly in to a VBA project and it will run, with small exceptions like not having access to the Wscript object. Many of the documentation examples such as for MSXML (for interacting with both XML files and the internet) show VBScript, and all of this code can be readily used in VBA.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a VB/vba coder and would like to start android dev. Currently I'm learning
Learning how to test is HARD! I'm just trying to get MiniTest running and
Ok I'm using Access 2003 and I've just started learning Access and VBA a
Learning some VBA. So far, I've constructed this piece of code which should allow
learning the basics of Python, now ready for a bigger challange... it didn't take
Learning a lot in my few years of programming that the best projects are
I'm still learning VBA and I can't figure out wth I'm having so many
Learning C and I'm trying to get a visual comparison of the variable types
Learning the hard way, I tried to left shift a long long and uint64_t
Learning about Explicit Cursors and trying to create my frst one.: SET SERVEROUTPUT ON

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.