VBA and Constructors; exist?

  • Thread starter Thread starter McManCSU
  • Start date Start date
M

McManCSU

Do constructors exist in VBA? All I have seen are static type
variables for the object's variables. For example, if you use the ne
statement, does it just create an object and you have to initialize it
fields, or does it look for a constructor?

Also, for the class module, do you need to export the code to use b
able to save it as the correct object name, say "person.cls"
 
for a class, I think the initialize event is considered the constructor:

Private Sub Class_Initialize()

End Sub
 
Is there a way to do this auto constructor and pass in arguments?

ie: cktbd as new CircuitBoard (size, side
 
Back
Top