Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all
In VBA/Excel is there any way I can dynamically refer to property names. By this I mean that I want to pass a property name as a parameter e,g, sub aSub (aCell as Range, aVal as Variant, prop as ???) .... aCell.prop = aVal ' or some such .... end sub so the input parameter "prop" could be "value" or "formula" or whatever. Many thanks Tone |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On 3 Jul, 14:39, Tone wrote:
Hi all In VBA/Excel is there any way I can dynamically refer to property names. *By this I mean that I want to pass a property name as a parameter e,g, sub aSub (aCell as Range, aVal as Variant, prop as ???) ... * *aCell.prop = aVal *' or some such ... end sub so the input parameter "prop" could be "value" or "formula" or whatever. Many thanks Tone Answered my own question! - use the function "CallByName" T |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dynamic Chart Building - "Unable to set the ... property of the Se | Excel Programming | |||
List of property names and values for a given Object | Excel Programming | |||
List of property names and values for a given object. | Excel Worksheet Functions | |||
Get objects property names in run-time? | Excel Programming | |||
Sort names into another worksheet by a property | Excel Programming |