excel - GeneralException if cell being edited -


i have js code in excel addin works fine while no cell in edit mode. if there's cell being edited call context.sync() fail generalexception 'invalid api call in current context.'

excel.run(function (ctx) {         //this line enough fail          return ctx.sync();     }).catch(function (error) {      }) 

is there way 'release' cell js?

the fact edit-mode makes api call fail "known-issue", , not fixable -- vba exhibits same problem [most] of api calls.

that said, idea of having js method explicitly un-cell-edit interesting thought. worry whether correspond users' intention, if corresponds developer feels they'd have. i'll run our team, though think best way track via "official" suggestion can file here: https://officespdev.uservoice.com/

at least, more helpful error message and/or specific error code. again, let me discuss team.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -