Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use comparison methods between class object modules in VBA in a similar manner as VB.NET?

Tags:

People also ask

What is the difference between modules and class modules in VBA?

A class is more of a unit, and a module is essentially a loose collection of stuff like functions, variables, or even classes. In a public module, classes in the project have access to the functions and variables of the module. You don't have to specify the module name to address one.

What is the difference between module and class in VB net?

The main difference between classes and modules is that classes can be instantiated as objects while standard modules cannot.

What is a class module in VBA and what is its use?

Class module in VBA can be defined as the module that helps to create your own objects with your own properties and methods like worksheets and range objectives of excel. In simple terms with the help VBA class module, we can create objects with own properties.


Due to new project in VBA I moved from VB.NET, to be honest don't really know how to deal between objects classes here. What I want to reach is comparing objects between different class object modules.

e.g

class Employee
     properties: Name, Age
     point is: compare Names between two Employees

classes: Employee and Manager
point is: compare Name from Employee with Name of Manager

I know how to in VB.NET, but how do I compare properties of different class module objects in VBA?