Comments (6)
Hi @HugoAlbertoNieto, I am afraid there is no such support. I will update here if I find something.
from office-js.
Hi @HugoAlbertoNieto , If your JS function is parameter less, you can register shortcut keys against your JS function and then trigger your JS function using Application.SendKeys function from VBA. But if this function requires parameters then you will need a similar approach as you have referenced to share data between VBA and JS.
from office-js.
Thanks @bhattikashif. My function requires parameters. We ended up deciding to mantain both, the VBA and the JavaScript addins at the moment. Thanks!
from office-js.
Now just a week after this I got the same requirement for calling JS function from VBA code. @zhenhuangMSFT is there any chance of introducing this functionality in near future/current year?
from office-js.
@bhattikashif I would suggest you to to give a try to the JsBridge repository. After a week of research, the closest I was to make it work, was using that code.
from office-js.
Hi @bhattikashif , unfortunately there will be no plan for introducing such capability officially in the short term.
from office-js.
Related Issues (20)
- Office.context.mailbox.item.bcc.setAsync causes cursor to move to CC field on Mac Outlook client HOT 1
- insertWorksheetsFromBase64 does not load excel if it contains chart data HOT 7
- [Regression] RuleCollection manifest field is ignored HOT 6
- Error shown to user (and fetch call cancelled) if onAppointmentSend event execution happens when other launch event(s) are running on an appointment HOT 6
- Office.context.ui.displayDialogAsync redirecting to browser from desktop app HOT 1
- Word Addin: how to retrieve characters / text prior to cursor location HOT 1
- Marketplace: error upload manifest.xml / error al subir el manifest.xml HOT 2
- Office 365 Add-Ins are working, while they are not working in the New Outlook and Web Outlook. HOT 3
- Spam addins not working for Monthly Enterprise Channels. HOT 8
- OnMessageAttachmentsChanged event doesn't work if we use "Upload and share as one drive link" when attaching local file to email HOT 2
- context.trackedObjects.add seems to not working properly HOT 2
- Excel event binding issue when using shared runtime and custom functions HOT 1
- setSignatureAsync doesn't execute or executes after 5+ mins using the outlook-set-signature example. HOT 3
- Download Text File Feature Not Working on Mac Desktop for Office Add-in HOT 5
- insertFileFromBase64() Method Not Working Properly on Office for the Web HOT 11
- context. document.insertFileFromBase64 not availabe in the latest npm package HOT 4
- Content Control insertOoxml may not preserve numbering style in Office Online HOT 5
- Styles stripped when using setSignatureAsync on Outlook Mobile HOT 5
- OneNote web add-in opens two iframes in taskpane when taskpane button is pressed twice HOT 3
- Mac OS - Outlook Desktop issue reading From Address when sending on behalf of another mailbox. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from office-js.