nas08-scripts/Stocks/onlyoffice_macro_autostart_recalc.js

20 lines
920 B
JavaScript
Raw Normal View History

2026-07-26 21:34:22 -04:00
// ONLYOFFICE Macro (NOT a Custom Function -- add under View -> Macros -> Macros, the "+" next
// to "Macros", not "Custom functions")
//
// Purpose: attempt to fix #NAME? / #BUSY errors that appear on file open for custom-function
// cells (FUNDPRICE, FUNDPRICE_HIST, STOCKPRICE, STOCKTIME) until manually clicked + Enter.
//
// IMPORTANT -- STATUS: PARTIAL FIX ONLY, ISSUE NOT FULLY RESOLVED.
// A screenshot after applying this showed only 2 of 34 "Price" cells resolved correctly;
// the rest stayed #NAME?, while a parallel "Price History" column resolved for all rows.
// The asymmetry was not explained before the session moved on. See
// onlyoffice_stock_tracking.md "Known Issues" section for next debugging steps if resuming.
//
// Setup: paste this in as a new Macro, check the "Autostart" checkbox, Save.
(function () {
setTimeout(function () {
Api.RecalculateAllFormulas();
}, 3000);
})();