Excel-Custom-Functions | Learn about custom functions in Excel | Data Manipulation library
kandi X-RAY | Excel-Custom-Functions Summary
kandi X-RAY | Excel-Custom-Functions Summary
Learn about custom functions in Excel.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Excel-Custom-Functions
Excel-Custom-Functions Key Features
Excel-Custom-Functions Examples and Code Snippets
Community Discussions
Trending Discussions on Excel-Custom-Functions
QUESTION
I am working on an Excel Add-In with custom functions using the Javascript API. I have followed this tutorial.
I am trying to debug this using the Web version of Excel as the logging capabilities are significantly better, however I am finding that it will never register changes in my functions.ts
file. I can change any other code file (eg. taskpane.ts
) and will see the changes reflected immediately, however whenever I try to reload the custom functions, I do not see any of the changes.
The commands I'm using:
npm run build
followed by
npm run watch
in one terminal, npm run start:web
in another.
This is the same whether or not I run npm run watch
in one terminal or not.
In order to observe any changes I need to completely restart the entire server and reload the plugin.
This makes for a pretty miserable development experience. Has anyone overcome issues like these, or have suggestions as to how I can improve the development process for Excel add-ins?
I would also like to develop using the Desktop version of excel, however do to the lack of decent logging capabilities, this doesn't seem too feasible.
...ANSWER
Answered 2021-Feb-04 at 16:50Sorry to hear you are having problems. Can you please try the following:
- Open the project manifest and remove 'dist' from the functions.html url as follows:
- Run "npm run build" again and then "npm start" again
QUESTION
I'm trying to start developing Office Add-ins. For sake of simplicity I'll use public code samples. Also I'm only testing with the web version of Excel.
So I take the sample Excel add-in with Angular framework using Typescript and the sample custom functions with typescript add-in provided by yo office and I want to merge their functionality into one add-in. Both samples work as expected while testing them separately.
I took the .ts, .json and .html files from the custom functions add-in and put them in the task pane add-in folder. Then I merged the dependencies of both add-ins. Finally I edited the manifest.xml trying to follow the AsyncStorage sample (https://github.com/OfficeDev/PnP-OfficeAddins/blob/master/Excel-custom-functions/AsyncStorage/).
The task panel works normally but the custom functions don't show up. Here's my manifest.xml
...ANSWER
Answered 2019-Feb-28 at 02:38When you run 'npm start' then the root folder of your web service is at 'https://localhost:3000' and it does not know about the 'src' folder. You'll need to replace all references that have '/src/' in the path with a location in your output folder relative to the web service root.
Remove the 'src' portion from the 'SourceLocation' path, then, if I can suggest something to start with for 'JSON-URL', 'JS-URL', 'HTML-URL':
Run 'npm run build' on your separate custom functions project and simply copy the files 'index.win32.bundle' (in the 'dist/ship/win32' folder, thats the customfunctions javascript) and 'customfunctions.json' straight from your separate customsfunctions project into the 'assets' folder of your combined solution. Rename the 'index.html' to 'customfunctions.html' to avoid confusion and copy that one to the assets folder also, then reference these files in the manifest like so:
QUESTION
I was trying to run the sample project with custom functions add-in using this link: https://github.com/OfficeDev/Excel-Custom-Functions.
I made sure that I meet all the prerequisites for running the project. I installed the certificates, and run the project successfully, but I'm stuck at step 3, of registering the custom functions add-ins by going to the insert tab and adding the respective add-in by selecting from the developer section. The problem I'm facing is that I have a different view and organization of options in my excel client application and I could not find the developer section from where I can register my Add-in. I'm attaching the images of the ribbon that I have in excel.
So if you will look into the images, you will see that there is manage my addins options, which will only show the add-ins that have been sideloaded manually but not the ones that were sideloaded using the script in this project. So I don't know where can I find the developer Section. Any help would be much appreciated. Thanks!
I'm also part of the Insider program which can be seen in the given image
...ANSWER
Answered 2018-Oct-16 at 13:53If you're a member of the Office Insider program and are running Excel for Windows build number 10827 or later, the Insert ribbon should look like the following screenshot (with red rectangles highlighting the items you choose to register your custom functions add-in).
- Have you joined the Office Insider program?
- What build number of Excel for Windows are you running?
(Screenshot taken from the Custom Functions Tutorial).
QUESTION
I am trying to incorporate custom functions in Excel from the preview feature of Office.js into an existing Excel add-in that I wrote. The Excel add-in is using Angular. Right now, both projects are separated in their folder and work great when run independently. I tried to combine the two by copying the files from the custom functions project into my existing add-in project. I followed the exact same architecture as recommended in the GitHub solution: OfficeDev/Excel-Custom-Functions
The only part where I'm struggling is with the manifest file. According to the documentation, the node < ExtensionPoint /> defining the custom functions need to be located within the node < AllFormFactors /> (AllFormFactors documentation) of the manifest file. For a regular add-in loaded through the taskpane (which is what I have), the node < ExtensionPoint /> is loaded within the node < DesktopFormFactor /> (DesktopFormFactor documentation).
In the manifest file I have, I copied the node < AllFormFactors /> containing the definition of my functions and put it before the node < DesktopFormFactor />. I made sure the manifest file was valid using the manifest-file-validator. I also copied the latest version of the manifest file to my shared folder location, and I also cleared the cache to make sure the latest version was loaded.
However, despite doing this, I still get an error saying that my custom functions could not be loaded, and I don't know where the problem is. I couldn't really find an answer online, so any help would be appreciated. Thanks!
For reference, here's the code contained in the manifest file.
...ANSWER
Answered 2018-Aug-22 at 09:51According to my research, i found this article which some comments may provide you new idea for this. Such as "join the Office Insider program". For your reference, Add excel custom functions to an existing excel add-in - Javascript Api
QUESTION
I am following this link to try custom functions.
First I put customfunctions.js
and customfunctions.html
in my local folder, and then replace https://
in the manifest file with their path: I tried \\SOFTTIMUR9FDC\Users\SoftTimur\tmp\EXCEL-CUSTOM-FUNCTIONS
and \\Mac\Home\tmp\EXCEL-CUSTOM-FUNCTIONS\
, but I could not see any application in SHARED FOLDER
in Excel.
Then, I put these 2 files on a website, and then replace https://
in the manifest file with their https address. Now, it worked; I could see the application in SHARED FOLDER
in Excel and the custom functions worked.
So is it expected? In other words, when we test custom functions, we could not save these files in LOCAL; we have to save them in a website?
PS: when we develop a normal excel add-in, there is no problem to save the source files in local.
...ANSWER
Answered 2018-Jan-02 at 21:58It's possible to host your customfunctions.html file locally, yes. From your description, it sounds like there's something wrong with how you're deploying the manifest, or with the manifest itself. Verify that your only change was the URL for those files, and that it worked properly otherwise.
QUESTION
In this link, it says that
During development and testing, you can manually clear your computer's cache of registration metadata by deleting the folder
\AppData\Local\Microsoft\Office\16.0\Wef\CustomFunctions
.
I then make a test as follows:
I load a
manifest.xml
pointing to the originalcustomfunctions.js
in my server in a workbook. After closing the workbook, a file is automatically saved in...\Wef\CustomFunctions\V1
.I modify manually
customfunctions.js
in my server by replacingExcel.Script.CustomFunctions["CONTOSO"]["ADD42"]
byExcel.Script.CustomFunctions["CONTOSO"]["ADD42NEW"]
.I open a new workbook, in a cell, after enter
=contoso.
, the IntelliSense shows mecontoso.add42
rather thanadd42new
. After entering=contoso.add42(5;4)
, the cells shows#GETTING_DATA
and does not return a value. That's understandable because it works on a function which does not exist anymore.If we click on another cell and enter e.g.,
=2+3
, we see the workbook is refreshed, and#GETTING_DATA
becomes#NAME?
. And now IntelliSense showscontoso.add42new
rather thancontoso.add42
.
To conclude, I think there may be a bug: when we open a workbook, IntelliSense should give the updated list of custom functions defined in the current customfunctions.js
.
Actually, what is ideal is that the custom functions in workbook always keep aligned with what are defined in customfunctions.js
. If there was not this bug, today we still needed to close a workbook and reopen one to get updated. Does anyone know if there is a workaround to make custom functions in an opened workbook keep updated on the fly? Is there a refreshing trigger that allows us to make custom functions in an opened workbook update from the current customfunctions.js
?
ANSWER
Answered 2018-Jan-02 at 21:54Thanks for the question! As you've discovered, custom function definitions are currently updated only on-demand rather than on every single document-open event.
We've received a bunch of feedback in this area and so we're considering some changes to how registration works so that the list of functions in IntelliSense/autocomplete gets updated at the beginning of a session instead of in the middle of one.
I don't have details to share right now, but be on the lookout for some changes here in a few months.
QUESTION
I am following this link to try custom functions. The following manifest does enable the custom functions:
...ANSWER
Answered 2018-Jan-02 at 21:43Yes, you can have custom functions and a task pane at the same time in the same add-in, by using add-in commands.
To enable a task pane command, use the ShowTaskpane
action in your manifest (see the help topic, like in this sample manifest on GitHub).
If you'd also like your task pane to be "permanent" whenever it's inserted, then use this topic page on automatically opening task panes.
-Michael (PM for custom functions)
QUESTION
I've deployed the Excel-Custom-Functions sample successfully and can use the new JS functions.
After changing the code/definition in customfunctions.js
, I've restarted my web server, started Excel, inserted the custom functions from the Office Add-ins page again but still get the original functions.
If I start Excel without inserting the sample again, the functions are still known!?
How can I force Excel to remove such an add-in and reload it from scratch?
Example: The sample contains several custom functions and their corresponding registration:
...ANSWER
Answered 2017-Nov-22 at 18:08Excel caches previously-registered functions for each add-in. The reason for caching is so that the functions are available for the user to see and trigger (causing your add-in to load automatically) even before the add-in gets loaded.
When you run the following code, all previous registered functions in the cache are removed and immediately replaced with the new ones you specify:
QUESTION
Thanks to the Excel-Custom-Functions sample I can use the new JS functions in Excel, e.g. insert =CONTOSO.ADD42(1;2)
But in Excels Insert Function dialog the CONTOSO
functions cannot be found.
I would expect to see CONTOSO
in the list of categories, and all of its functions within this category.
Is there additional coding required to see these functions in the dialog?
...ANSWER
Answered 2017-Nov-24 at 23:31We haven't enabled any features for extending the Insert Function dialog yet. So for now you'd have to rely on our existing ribbon extensibility framework ("add-in commands", which lets you add ribbon buttons to any tab or create a new tab. Thank you for the feedback!
-Michael, PM for add-ins
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Excel-Custom-Functions
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page