osx - Excel for Mac - Cells containing user-defined functions won't update -


i'm working on vba code writes formulas containing user-defined functions (udfs) cells of workbook, e.g.: h1004 = maxdd(h1:h1001).

when run code in excel 2010 (for windows) works expected:

1) formulas written cells
2) each cell returns correct result.

when run same code in excel 2011 mac formulas written cells. however, cells won't return valid results - instead display #value errors.

note: can't troubleshoot issue because when select 1 of these cells, put cursor in formula field, , press return (presumably forcing cell evaluate), correct answer appears.


my question:

  • what needs done keep excel mac returning #value errors instead of plain results?

i figured out what caused problem, although have no idea why caused problem:

in order make vba code run faster, had turned off automatic calculation @ beginning of code , turned on @ end of code, -->

application.calculation = xlcalculationmanual   'main part of vba code application.calculation = xlcalculationautomatic 

for reason, kept cells containing user-defined functions being updated.
without these 2 lines of code works fine now.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -