mikerickson is correct in that you could make sure your references are all to specific workbook/worksheet combinations. However, I'd still say that best programming practice is to pass this as an argument:
function myfunction(d_2009b as single, d_2010b as single, d_2011b as single,...)
(statements as needed)
end function
called from a spreadsheet cell as =myfunction(d_2009b,d_2010b,d_2011b,...). This allows you to control what values are passed to the function, and allows Excel to see how the cell dependencies work so it can optimize the calculation event.
Bookmarks