Hello there,
I have been given a spreadsheet with many complex formulae in the cells.
My task is to write some
VB (in a DLL, but that is immaterial) that replicates the behaviour of these formulae.
Can you tell me - is there a utility (either within Excel or "off-the-shelf") that will convert these GHASTLY-looking things (i.e. nested nested nested IF statements and other rubbish all on one line) into a
VB code snippet (or psuedo-code snippet).
This would GREATLY help me in this conversion process.
Thanks.
James
P.S. On a related topic - My Excel skills are very limited. I presume there are "best practice" guidelines for writing formulae in cells, so as to avoid "spaghetti formulae" everywhere. But I don't know anything about this, really. I would like to suggest to the person writing the original spreadsheet that these cells and formulae are written/structured rather poorly - but I don't know if that is true or not! Please can you tell me if there are generally-accepted ways of creating sheets to avoid "spaghetti formulae"? Thanks.
//##