Does VBA support an equivalent to C's "#define" for inline replacement?
For example I have a section of code, where a tollerance is allowed, and the tollerance could be either a fixed tollerance or a percentage tollerance, that I would like to be able to change at a later date:
Then at the top of the file I could have:
Which would cause the line in the original code to be evaluated as:
Alternatively I could have at the top of the file:
Which would cause the line in the original code to be evaluated as:
Is something like this possible with VBA?
Otherwise I can only see doing it with booleans and a 'value' parameter, so requiring code something like this:
or
Then a 'main' code of:
but as I have several of these tollerances for different things, and each one is in multiple places in the file the first method would be tidier and easier to up-keep..... if it is possible?
Thanks
Bookmarks