PDA

View Full Version : Object-oriented programming in VBA



felix
05-13-2009, 04:11 AM
Hi guys,

Do you know how to get an object (or simply a structure without methods if such an animal exists in VBA) as an output of a function written in VBA?

I have tried to declare the function as an object type, but could not modify any of its filed inside the function ...

Thanks a lot !

Bob Phillips
05-13-2009, 04:28 AM
Create a class.

felix
05-13-2009, 04:43 AM
I created the class. The function is declared as the type defined by the class.

Bob Phillips
05-13-2009, 04:47 AM
Then we need more info, more details.

Paul_Hossler
05-13-2009, 07:43 AM
An example WB would be helpful, I'd like to see how to do that also

Paul

Imaginative1
08-07-2009, 04:32 PM
I'm trying to do that too.