Coder Social home page Coder Social logo

Custom functions not registered when Excel is launched via COM Automation; any recalculation causes #NAME! or #VALUE! error. about office-js HOT 2 OPEN

gmichaud avatar gmichaud commented on September 14, 2024 1
Custom functions not registered when Excel is launched via COM Automation; any recalculation causes #NAME! or #VALUE! error.

from office-js.

Comments (2)

gmichaud avatar gmichaud commented on September 14, 2024

I have updated the bug description above with the updated sample

Here's an updated set of test macros:

ExcelAutomationCustomFunctionsAdditionalScripts.zip

I have also simplified the test workbook down to a single custom function

  • Test.vbs: workbook opened before Excel application is made visible -- custom functions are not registered at all
  • Test2.vbs: workbook opened after Excel application is made visible -- custom functions are registered and working
  • Test3.vbs: workbook opened after Excel application is made visible, but recalculation triggered too quickly -- #VALUE! error displayed in all the cells
Screenshot 2024-08-28 at 9 47 58 AM

I inspected the side-panel console and our telemetry and we don't see anything being logged, so assuming function registration is not yet completed at this stage. It sometimes happen that Excel triggers a recalculation on file open; if custom functions are involved, the #VALUE! error will be shown to user as well. Users can then manually force a recalculation, but it looks like a bug to them.

I think Excel should defer calculation or keep waiting until the add-in has been fully initialized in these scenarios.

from office-js.

shanshanzheng-dev avatar shanshanzheng-dev commented on September 14, 2024

Hi @gmichaud Thanks for reporting this issue, we'll take a look and report back if we have a suggestion for you.

from office-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.