Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use CallByName:
Dim Res As Variant Dim PropName As String Dim Obj As New Class1 ' some code to set up Obj PropName = "MyProperty" Res = CallByName(Obj, PropName, VbGet) -- Cordially, Chip Pearson Microsoft MVP - Excel, 10 Years Pearson Software Consulting www.cpearson.com (email on the web site) wrote in message oups.com... Does anyone know how to get the value of a property of an instance of a class by passing the string as the name of the property? I have seen it somewhere before e.g. GetPropertyValueForClass(myClass,"PropertyName") Any help would be really appreciated Thanks Mark |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Passing several parameters to OnAction property. | Excel Discussion (Misc queries) | |||
How to cycle through each of property and its value of Class? | Excel Worksheet Functions | |||
Property Let: assign return value of Double when passing String | Excel Discussion (Misc queries) | |||
Cannot set HorizontalAlignment Property of the Range Class | Excel Programming | |||
Using Property Let with a Type as member of a Class | Excel Programming |