Coder Social home page Coder Social logo

eszopicoder / excel-openfda-api Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 877 KB

openFDA API usage within VBA framework

License: GNU General Public License v3.0

VBA 100.00%
vba vba-excel openfda pharmacy drugs api openfda-api excel informatics informatics-general

excel-openfda-api's Introduction

openFDA API for Excel VBA

Purpose and Features

Compatibility

  • Microsoft Excel 2010+ (OS must be able to support Regular Expression, Dictionary, and XMLHTTP objects)
  • Note: I have also translated this repository to Javascript for Google Sheets

How It Works

  1. The openFDA API is called with the XMLHTTP object
  2. The XMLHTTP object returns a JSON script
  3. The JSON script is parsed using code found here
  4. The parsed JSON script is reformatted and written to a dictionary object
  5. Steps 1-4 are repeated until all data is retrieved
  6. The dictionary object is copied to an array to write to an Excel worksheet

Usage

Download 'NDC Directory.xlsm'

The current file has two main subs:

  • Sub openSearchForm() Opens the userform for the NDC directory
  • Sub resetSheet() Resets the formatting and clears the active sheet

Note: The search field(s) do not support partial spelling

Sample Images

excel-openfda-api's People

Contributors

eszopicoder avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

vb6hobbyst7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.