Comments (3)
Thanks for reporting this @Rickyp. I'll work up a fix soon and share the results on this thread.
from office-js-snippets.
Hi @Rickyp,
A couple things. One, I couldn't get this to repo on "Create a named item", but I did see this behavior on the other Named Item snippets.
Second, I'm wondering if this is desirable behavior and would appreciate your input. The role of snippets is to show how the code acts. Is it valuable to know referencing a non-existent NamedItem throws an error? Or is it better to show how to check if NamedItems exist (and avoiding the error)?
from office-js-snippets.
Hi @Rickyp
The snippet has been updated to warn of this behavior, while preserving the simplicity of the code sample. The sample about updating named items shows how to check if the named item already exists.
I'm going to close the issue. Please reopen it if you notice any other problems. Thanks!
from office-js-snippets.
Related Issues (20)
- Sort Table Data snippet uses inappropriate Sort object
- Request for another Fabric example HOT 4
- Error with "Find text matches within a range", Excel.SearchDirection doesn't exist in release version HOT 3
- Color Wheel "Just for fun" sample has errors HOT 4
- Modify "gradients" sample to make use of setCellProperties HOT 2
- Unable to call fetch HOT 9
- Getting range from argument example HOT 4
- onSelectionChanged event - sample request HOT 5
- Pivot Table Samples are broken HOT 9
- Identifier a cell in excel HOT 7
- PowerPoint Shape and Tag APIs should be moved out of the preview folder
- Outlook Add-in Compose - Dynamic Control Button Text Updating HOT 1
- EWS SOAP request to fetch ICalUid HOT 2
- PowerPoint Shapes API preview bug when working with multiple shapes HOT 1
- Bug in Find text matches within a range HOT 3
- Get image from PowerPoint document HOT 9
- This repo is missing important files
- Error at context.sync() HOT 16
- loadCustomPropertiesAsync example doesn't work any longer. 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-snippets.