Version: 2004
Operating System: Mac OS X 10.6 (Snow Leopard)
Processor: Intel
If I insert MSGBOXes in a user defined function for debugging, they show up
twice (at least!), once with zero or blank values (as appropriate) and again
with correct values? Why?
WIthout seeing your UDF, it's hard to be definitive, but it almost
certainly means that the function is being called multiple times during
a single worksheet calculation. This can happen if the function declares
itself to be volatile (e.g., Application.Volatile = True) or if it's
self-referential.
Post your UDF, along with relevant details about your worksheet and we
can be more precise.