Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.54 KB

README.md

File metadata and controls

47 lines (38 loc) · 1.54 KB

xlwings

Python Principles

Introduction

  • Excel is great for visualization, but large datasets are cumbersome
  • xlwings is a free and open-source add-in for Python
  • xlwings provides access to Python’s libraries
  • Different from a dll
  • Docs are here: https://docs.xlwings.org/en/stable/api.html

What you will need for this session:

Installation

At the command line:

  • pip install xlwings --upgrade
  • xlwings addin install

In Excel:

  • Alt+F11 to bring up VBA Editor
  • Tools->References - Make sure xlwings is ticked

The Basics

  • Using Python to control Excel - demo.py

Performance matters?

loop.py

Invert control

This is how you invert

From Excel, use Python as a VBA substitute or replacement
Integrating Data with Other Applications
Back and forth with Python calling macros