1,066 questions with Microsoft 365 and Office | Development | Office JavaScript API tags

Sort by: Updated
0 answers

Cloning an Office JS add-in control from the ribbon to a document-level customUI definition

I have a simple Office.JS add-in that includes a button in the home tab to activate the add-in's taskpane. Using the Office ribbon customisation UI (right click anywhere on the ribbon and select "Customize the Ribbon..." I can clone that…

Microsoft 365 and Office | Development | Office JavaScript API
Developer technologies | Visual Basic for Applications
asked 2022-05-06T12:09:56.147+00:00
Jamie Garroch MVP 6 Reputation points MVP
commented 2022-05-06T20:51:56.52+00:00
Jamie Garroch MVP 6 Reputation points MVP
1 answer

Applying AutoFilters to Excel table slow

We are building an Excel-specific addin that retrieves data from an external source and puts it into an Excel table for viewing. This table can range from 1 row x 5 columns to 500k rows x 100 columns. When a user specifies a filter on the table and…

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
asked 2022-04-26T16:17:42.497+00:00
Jacob Calkins 1 Reputation point
answered 2022-05-05T00:29:14.353+00:00
Guangshuai Liu 1 Reputation point Microsoft Employee
1 answer

Get replies to bug reports on current Microsoft email account, not my previous email account?

Years ago, I changed the principal email address of my Microsoft account (from hotmail to gmail). However, any time I submit a bug report to Microsoft, they reply to my hotmail email address, which I normally don't look at any more. I can't see anywhere…

Microsoft 365 and Office | Development | Office JavaScript API
asked 2022-05-01T12:35:52.8+00:00
Bill Fulton 6 Reputation points
commented 2022-05-02T12:35:46.117+00:00
Anonymous
2 answers

Custom XML support PowerPoint via Office JS

We are building Office JS taskpane addin for (Word, Excel, PowerPoint) and we are heavily relying on the data stored into the document (custom XML). In Word and Excel there are API's to access that information, but it seems that in PowerPoint the support…

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
asked 2022-04-21T12:53:19.76+00:00
Miikka Laakso 41 Reputation points
commented 2022-04-26T05:23:08.563+00:00
Miikka Laakso 41 Reputation points
1 answer

How to use a ConditionalTextOperator in ExcelScript

I am new to ExcelScript and trying to write a script that determines whether a cell contains a space. I'm not sure how to use the ExcelScript.ConditionalTextOperator enum. I know there is a "contains" value, but what do I use with this operator…

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
asked 2022-04-19T15:32:02.947+00:00
Josie 1 Reputation point
answered 2022-04-21T16:06:26.983+00:00
Brian Gonzalez 76 Reputation points
5 answers One of the answers was accepted by the question author.

I want to learn Office scripts. Which Book should I start with?

https://learn.microsoft.com/en-us/office/dev/scripts/overview/excel I want to learn the above Tool. Where should I start with? Is there a Book available? Please reply. Thank You. With Hope, Prabhakaran

Microsoft 365 and Office | Development | Office JavaScript API
asked 2021-04-30T15:02:24.623+00:00
Prabhakaran Karuppaih 21 Reputation points
answered 2022-04-21T01:35:29.993+00:00
عايد مخلد المطيري 16 Reputation points
0 answers

Pinch Zoom breaks touch accuracy when opening Excel through Microsoft.Office.Interop.Excel

Good Morning, I'm using 'Microsoft Excel 14.0 Object Library' just to open and close a specific workbook and I'm running in to a possible bug with the library. If I open a workbook 'Workbooks.Open' it opens fine and runs fine however when using pinch…

Microsoft 365 and Office | Development | Office JavaScript API
Developer technologies | Visual Basic for Applications
asked 2022-04-15T12:46:21.75+00:00
CFoster 1 Reputation point
1 answer

Update PowerPoint slide with controls built on server

Hi, I have an issue when trying to update a PowerPoint slide, more exactly I want to build on the server the controls that are not available on the frontend version of PowerPoint and then insert them into the slide. Is there any way of doing this…

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
Developer technologies | Visual Basic for Applications
asked 2022-04-06T08:44:49.657+00:00
Popa Daniel Viorel 1 Reputation point
answered 2022-04-13T01:57:43.84+00:00
Luyi Han 1 Reputation point Microsoft Employee
0 answers

createDocument() from base64 or url result in RichApi.Error: GeneralException

I am trying to open an existing document from within a Word add-in. I tried: var newDoc = context.application.createDocument(base64Image) newDoc.open() context.sync() but I'm am getting an error: Uncaught (in promise) RichApi.Error:…

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Word | For business | Windows
asked 2022-04-12T17:30:23.623+00:00
AG 1 Reputation point
1 answer

Clearing the Wef directory

On this page, it says that to clear the Office cache you should "delete the contents of" %LOCALAPPDATA%\Microsoft\Office\16.0\Wef. Does that include subdirectories, or just files at the top level?

Microsoft 365 and Office | Development | Office JavaScript API
asked 2022-04-09T17:48:56.673+00:00
T.J. Crowder 1 Reputation point
answered 2022-04-10T09:34:22.557+00:00
T.J. Crowder 1 Reputation point
2 answers

RegSvr32 ok pop-up should click automatically.

Hello There, I have an issue with pop-up of regvsr32, that should be click on ok automatically, please tell me the PowerShell command line. Hint: Notify or tag a user in this post by typing @Anonymous .

Microsoft 365 and Office | Development | Office JavaScript API
Windows for business | Windows Server | User experience | PowerShell
asked 2022-04-09T11:15:34.79+00:00
anil lucky 1 Reputation point
commented 2022-04-09T14:25:46.687+00:00
Castorix31 90,681 Reputation points
0 answers

InsertBookmark Api in OfficeJS

Hi Team, We want to use insertBookmark method but it is not supported by wordApi 1.3 As per docs it says wordapi beta, when it will be added in wordapi 1.3. Can any one update for this? Thank You. @office-js-dev @officeaddin

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
asked 2022-04-08T10:22:17.47+00:00
Ankit Gaikwad 1 Reputation point
1 answer

insert Bookmark using office js

In office js docs their is a method insertBookmark but it is not supported by wordapi 1.3. As per docs it says wordapi beta, when it will be added in wordapi 1.3. Can any one please help in this case.

Microsoft 365 and Office | Development | Office JavaScript API
asked 2021-11-30T06:26:26.437+00:00
Shraddhesh Dongare 6 Reputation points
answered 2022-04-08T10:20:05.527+00:00
Ankit Gaikwad 1 Reputation point
1 answer

Handle for close event of PowerPoint app in the add-in (JS)

Hello, I was looking for a way to handle the closing event of the PowerPoint when developing an Add-in. The only ones that were a bit close was the fact that we can detect the visibility change of the add-in with …

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
asked 2022-04-06T08:56:47.17+00:00
Popa Daniel Viorel 1 Reputation point
answered 2022-04-08T09:56:55.873+00:00
Luyi Han 1 Reputation point Microsoft Employee
1 answer

excel plugin, what is the best place to store accessToken

Excel add-in, invokes enterprise apps page via dialog api and are able to get access token, i want to know what's the best place to store in case of excel add-in, as it is needed to invoke backend REST API?

Microsoft 365 and Office | Development | Office JavaScript API
asked 2022-04-05T21:39:47.59+00:00
theaiwork 1 Reputation point
answered 2022-04-07T19:46:31.797+00:00
Rick Kirkham 281 Reputation points Microsoft Employee
0 answers

Reliably Clear Desktop Excel Addin Cache During Dev

I'm struggling to work on a custom functions Office JS addin because Desktop Excel keeps using old copies of the files. (I am, of course, stuck working on a Desktop-specific bug.) I've cleared %LOCALAPPDATA%\Microsoft\Office\16.0\Wef. I've cleared…

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
asked 2022-04-05T17:01:24.38+00:00
T.J. Crowder 1 Reputation point
commented 2022-04-06T11:36:59.393+00:00
T.J. Crowder 1 Reputation point
0 answers

Is there a way to load "n" number of rows from table iteratively in excel table office js api

I am working on developing add-in which business users will use to interact with enterprise apps. User can have thousands of records in excel sheet in table, we need to call backend API, want to do it iteratively by n (say equal 100 rows), is there a way…

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
asked 2022-04-05T21:38:17.823+00:00
theaiwork 1 Reputation point
0 answers

content control

Is it possible to put an existing table inside a content control? Right now, the content controls, which were created with "table.insertContentControl()", disappear after page reloading. The reasoning for such functionality is to be able to…

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
asked 2022-04-01T14:48:00.433+00:00
Mariia Kunieva 1 Reputation point
1 answer One of the answers was accepted by the question author.

office-addin-sso with @azure/msal-browser

Is there any difference between these 2 approaches: (1) Using @azure/msal-browser to get an Access Token [and then using this to access MS Graph] or (2) Using OfficeRuntime.auth.getAccessToken() to get an Identity Token which can then be swapped…

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
asked 2022-03-21T09:53:04.9+00:00
BetterSolutions.com 121 Reputation points
accepted 2022-03-29T04:20:04.257+00:00
BetterSolutions.com 121 Reputation points
0 answers

Unit test cases for Office js library using Angular13 framework

We are developing outlook add-in using Angular 13 framework and trying to write unit test cases for it. We have tried and tested the examples which is mentioned in official documentation. Unable to execute test cases using Jest/Jasmine framework…

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
Outlook | Windows | Classic Outlook for Windows | For business
asked 2022-03-28T07:43:16.45+00:00
SK 1 Reputation point