Skip to content

A set of Python functions completely written in VBA macros that can be added as an excel add-ins, or run via a macro enabled workbook.

License

Notifications You must be signed in to change notification settings

sharkutilities/py2excel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Python Native Function(s) in Excel

GitHub Issues GitHub Forks GitHub Stars LICENSE File

Python Native Functions (py2excel) is a set of native MS Excel functions derived/inspired from PyPI modules. The functions are written in pure macros/VBA to be used inside a macro-enabled workbook or can be used as add-ins by saving the files and importing them from the File > Options > Add-Ins tab.

Modules / Add-Ins

The modules/add-ins are available in two formats - scripts and add-ins. The scripts contain scripts and functions in *.vb file format which can be directly added to a macro-enabled workbook/worksheet as per preference. However, it is recommended to either add the contents of the *.vb in the "Personal Workspace" or directly import the codes using add-ins from the created files.

Fiscal Year

The project is inspired from the fiscalyear library hosted in PyPI. The script provides ready-made functions to users who wants to convert dates to- and from- calendar to financial year and vice-versa. The following functions/methods are available:

Function: fiscalYear | Release Date 21-05-2024

function-script ms-excel-addins function-example

Parameter Name Accepted Type Optional Parameter Default Value Parameter Definition
value DATE Current Year
prefix STRING "F.Y. " Prefix to be added at the beginning of the resolved finanicial year.
fmt STRING "YYYY" Returns the year in YYYY or YY format depending upon user-preference.
quarter BOOLEAN FALSE Returns the quarter number for the financial year.

About

A set of Python functions completely written in VBA macros that can be added as an excel add-ins, or run via a macro enabled workbook.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks