I can't imagine anyone having the persistence and perseverance to write this code.
I don't really know what you are doing or trying to do, but it sure looks to me like there certainly MUST be a better way.
I don't know how you will ever maintain your code and what will you do about price changes or name changes.
You have a worklightsingle and a worklighttwin. What happens when someone decides to change the name of worklighttwin to worklightdouble?
Isn't it time you moved your data into some kind of database (Access, SQL, even an old copy of dBase III) and created some kind of front end application in Visual Basic 6.0 or .Net.
I would think that even writing your complete application in Access would be much better than what you are currently doing.
Like I said, I don't really know what you are doing or tyring to do, but you are my new HERO!
Unfortunately AIS4U the application must be created solely in Word/vba (not that I would know how to do it with VB or in a dbase anyway )
I am creating a series of quotations for equipment that is technical in nature. The items in the list will vary depending on what type of equipment has been chosen and what options are included with the equipment. Each quotation template employs a userform containg a series of textboxes, comboboxes and checkboxes.
To aid with price changes, I have created a price list containing strSomeItemPrice for each item so updating prices (may occur once or twice a year) can be done in the VBE. Changing of names is highly unlikely. To explain, take for example, a car - a windscreen is called a basic windscreen and no one is likely to change it anytime soon. The total number of options is also unlikely to increase anytime soon.
One possible direction (kindly shown to me by Dkenny) would be to use an array that would be populated with items that meet my conditions, i.e. enabled and false. However, I don't know how to assign the price to each item in the array.
Still clueless
"Those things we must learn to do, we must learn by doing" (or hope somebody else will take pity and help out )
I've not yet tried the code in my actual document. Before implementing it I added it to a document on it's own to try and understand it a little better.
The code has been slightly modified from original because I could'nt get it to work, although it still doesn't work - I'm simply adding Array(5,2) to my document.
Any help would be appreciated.
"Those things we must learn to do, we must learn by doing" (or hope somebody else will take pity and help out )