![]() |
|
#1
|
|||
|
|||
![]()
The array approach was one of my first solutions (except I was using split with a single string). But to make the code more meaningful I also defined an enumeration to index the array.
This allowed me to say things like docXMLProp(<propertyname>) Which still leaves what should be a constant writable. So I made the array behave like a constant by putting it in a class. That leaves me with the choice of one get statement per enumeration value docXMLProp.<propertyname> or a single get property with a case statement to allow the form docXMLProp.item(<propertyname>) or docXMLProp(<propertyname>) if you go through the rigamarole of exposting the class, setting the default property as item then reimporting. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
dwirony | Word VBA | 4 | 10-28-2016 07:51 AM |
VBA code to extract strings | twozedz | Excel Programming | 1 | 05-15-2016 06:00 AM |
![]() |
silverspr | Excel | 7 | 03-03-2013 04:45 PM |
![]() |
digitalhecht | Word | 2 | 10-17-2011 12:53 PM |
![]() |
vikrantkale | Word | 1 | 03-28-2011 06:13 PM |