3a. Install xlwings

Execute the following command on the Bash Terminal
python -m pip install xlwings

3b. Load the xlwings Add-in

  1. Open a new Excel file.
  2. Go to Developer > Excel Add-ins > check xlwings > OK (see Figure 6).
  3. Figure 6: Excel Add-ins dialog
    Figure 6
  4. Press Alt + F11 > Tools > References > check xlwings > OK (see Figure 7).
  5. Click File > Save As > Excel Macro-Enabled Workbook.
  6. Figure 7: Excel References
    Figure 7

3c. Point the Python Interpreter and Excel integration code Paths to the xlwings

  1. Open the xlwings menu in Excel.
  2. Set the Interpreter to your .venv Python path (e.g. C:\Users\you\Desktop\mf_excel_package\.venv\Scripts\python.exe).
  3. Set PYTHONPATH to the path where the mf-excel package folder is located (e.g. C:\Users\you\Desktop\mf_excel_package\.venv\Lib\site-packages\mf_excel) (see Figure 8).
  4. Save the update.
Figure 8: xlwings settings
Figure 8