Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Excel Custom Functions: Straight to the Point
Excel Custom Functions: Straight to the Point
Excel Custom Functions: Straight to the Point
Ebook94 pages18 minutes

Excel Custom Functions: Straight to the Point

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Excel users are used to build custom functions—called user-defined functions (UDFs)—in Windows and Mac versions of the application. UDFs can be simply written in Visual Basic Editor (VBE) using the Visual Basic for Applications (VBA) language.UDFs are not portable to Excel Online and Excel for iOS due to the missing VBA capability on these platforms. Therefore, Microsoft has improved the JavaScript API that was already being used for Office add-in development to allow developers to create custom functions attached to the add-ins. These custom functions can be used like any other native functions or UDFs in Excel. While Microsoft calls these functions JavaScript custom functions, they can also be called JavaScript UDFs, which is the name used in this book.This book shows the process of creating JavaScript UDFs in Excel in Developer Preview for Office Insider program subscribers.
LanguageEnglish
Release dateJul 19, 2019
ISBN9781615472598
Excel Custom Functions: Straight to the Point

Related to Excel Custom Functions

Related ebooks

Enterprise Applications For You

View More

Related articles

Reviews for Excel Custom Functions

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Excel Custom Functions - Suat M Ozgur

    Straight to the Point

    The Straight to the Point e-books are designed to thoroughly cover one targeted aspect of Excel.

    EXCEL CUSTOM FUNCTIONS

    Straight to the Point

    Suat M. Ozgur

    Holy Macro! Books

    PO Box 541731, Merritt Island FL 32953

    Excel Custom Functions

    © 2019 by Suat M. Ozgur

    All rights reserved. No part of this book may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information or storage retrieval system without written permission from the publisher.

    All terms known in this book known to be trademarks have been appropriately capitalized. Trademarks are the property of their respective owners and are not affiliated with Holy Macro! Books

    Every effort has been made to make this book as complete and accurate as possible, but no warranty or fitness is implied. The information is provided on an as is basis. The authors and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book.

    First Published: July 2019

    Author: Suat M. Ozgur

    Cover Design: Shannon Travise, Creative Correspondence

    Cover Illustration: Shannon Mattiza, 6'4 Productions

    Technical Editor: Bill Jelen

    Published by: Holy Macro! Books, PO Box 541731, Merritt Island, FL 32953

    Distributed by Independent Publishers Group, Chicago, IL

    ISBN 978-1-61547-259-8

    Table of Contents

    Introduction

    About the Author

    About This Book

    Quick Start

    Microsoft Script Lab

    Installing and Using Microsoft Script Lab

    Getting Prepared

    Installing the Development Tools

    Node.js

    Git

    Yeoman Generator for Office Add-ins

    Visual Studio Code

    Creating the Office Add-in

    Yeoman Office Generator

    Getting Familiar

    Add-in Source Files and File Structures

    The JavaScript Functions File—/src/functions/functions.js

    The JSON Metadata File—/dist/functions.json

    The Loader HTML File—/src/functions/functions.html

    The Add-in Manifest File

    Warming Up

    Creating a New Function

    JSDoc Tags

    Function Body

    Function Name Association

    Building the Add-in and Testing the Function

    Testing the Custom Function in Excel Online

    Creating a New Function to Accept a Range as a Parameter

    Debugging the Custom Function

    Getting Confident

    Fetching Data from Web Services

    Using a Web Service for Stock Prices

    Adding an Asynchronous Function

    Fetching Multiple Symbol Prices with a Single Web Service Call

    Batching Web Service Calls as a Better Alternative to Array Formula

    Creating a Streaming Custom Function

    Returning Two-Dimensional Array from a Streaming Function

    Wrapping Up

    Final Words

    What's Next?

    The Final Function Code

    This page intentionally left blank

    Introduction

    About the Author

    Suat M. Ozgur has worked behind the scenes with MrExcel.com since 2002. He has been using JavaScript since 2005. When Microsoft introduced the new Excel Custom Functions, he was uniquely qualified to work with them, thanks to his experience in both JavaScript and Excel.

    Suat is the author of

    Enjoying the preview?
    Page 1 of 1