give a default value when a variable is not defined or "on error"
Probably my is a trivial question. I started using reference files to take advantage of repetitive calculations. So the scenario could be like the following.
- Main Worksheet [1]: defines var1; var2, then it references file .mcd Worksheet [2].
- Linked Worksheet [2]: expects var3 and gives outputVar1.
I would like to put in [2] a line of programming that if no var3 is defined, then var3:=0. Yet I tried "on error" function, but I realized that it does not work in this case
.Is there a way to assign a value to a variable when it is "on error" AND when it is "not defined" above (in my case in the main worksheet)?
Thanks for any tip.
