Hi,
I have a stocktake form where amounts are entered into from a manual sheet.
Quite often we have different product box sizes, ie 12 / carton, 24 / carton, 30 / carton or even units.
Our stock is only entered as units, so 10 cartons of 24 + 2 cartons of 30 would be 300 units.
This has to be manually calculated each time, and the units entered.
I'd like to be able to enter "=10*24+2*30" into a textbox and have have a function to calculate automatically, ie. like a simple calculator, or a spreadsheet cell. I would detect the "=" and take the remainder of the string to be the equation.
I'm experienced in VBA and could probably parse the string and calculate - in proper order (/* before +- etc...) in code. But then I'm thinking, can VBA do this for me already?
Example, in debug immediate I can type ?10*24+2*30 and get the correct 300 answer. I want to be able to do this in code.
Hopefully I have explained this clearly enough, and thanks in advance for comments.
swas