.. SPDX-License-Identifier: BSD-2-Clause
   Copyright 2013-2023, John McNamara, jmcnamara@cpan.org

.. _ex_macros:

Example: Adding a VBA macro to a Workbook
=========================================

This program is an example of how to add a button connected to a VBA macro to
a worksheet.

See :ref:`macros` for more details.


.. image:: _images/macros.png

.. literalinclude:: ../../../examples/macros.py
