I just completed my first program in VBA for my work. (I've given up on using Excel's built in functions)
The gist is that it averages total production and waste for a month based on a product type and shift and then spits out the averages in a chart friendly format. The product type and shift and even the starting cell for the data print is done via user prompt boxes
It beat my head in for a couple days but I finally put up enough coding band-aids to at least work for the data I put into it.
But I'm thinking to the next version, something that will just read the entire workbook and organized the data into a data structure that allows for new types and it freely extendable.
Arrays, well, I suppose they would work but I'm not fond of the fixed sizes nor the fact that you can't use variable values to initialize their sizes in VBA.
What I'm thinking is a 2 dimension double linked list. I think it would be perfect, it would only be as big as it has to be and is freely extensible and will take in any previously unencountered product type and start gathering data on that.
Is there any way to create this data type using VBA's abilities in that area?
The gist is that it averages total production and waste for a month based on a product type and shift and then spits out the averages in a chart friendly format. The product type and shift and even the starting cell for the data print is done via user prompt boxes
It beat my head in for a couple days but I finally put up enough coding band-aids to at least work for the data I put into it.
But I'm thinking to the next version, something that will just read the entire workbook and organized the data into a data structure that allows for new types and it freely extendable.
Arrays, well, I suppose they would work but I'm not fond of the fixed sizes nor the fact that you can't use variable values to initialize their sizes in VBA.
What I'm thinking is a 2 dimension double linked list. I think it would be perfect, it would only be as big as it has to be and is freely extensible and will take in any previously unencountered product type and start gathering data on that.
Is there any way to create this data type using VBA's abilities in that area?