https://github.com/kreipikc/macros-create-report-excel
A script for automatically creating an advance report on a button from a single Excel spreadsheet
https://github.com/kreipikc/macros-create-report-excel
excel python vba-macros
Last synced: 3 months ago
JSON representation
A script for automatically creating an advance report on a button from a single Excel spreadsheet
- Host: GitHub
- URL: https://github.com/kreipikc/macros-create-report-excel
- Owner: kreipikc
- Created: 2025-02-06T15:26:48.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-02-13T16:29:23.000Z (3 months ago)
- Last Synced: 2025-02-13T17:33:16.743Z (3 months ago)
- Topics: excel, python, vba-macros
- Language: Python
- Homepage:
- Size: 89.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ENG
## Information
- The `templates` folder contains a template for creating an advance report.
- The `input.xlsm` file contains a suitable template for filling out the report, as well as a macro that needs to be configured.
- The `reports` folder contains an example of an advance report received upon completion of the script.## How to start
### First step
Download python and download the necessary libraries from `requirements.txt`.You need to go to the right directory and download all libraries:
```commandline
cd example/path/to/script_folder
pip intall -r requirements.txt
```### Second step
Configure it `config.py` if necessary (is to you use templates, you don't need to).
The macro is already in the `input.xlsm` file, and its code can be viewed in `macros_code.vb.txt`. To work correctly, **you need to configure it in Excel**, namely specify the paths:
- `pythonExe`: path to the python interpreter;
- `PythonScript`: the path to the script `main.py`;
- `savePath`: the path to save the final report.After setting up the macro, you can fill in the file and click on "Generate"
# RU
## Информация
- Папка `templates` содержит шаблон для создания авансового отчета.
- Файл `input.xlsm` содержит подходящий шаблон для заполнения отчета, а также макрос, который необходимо настроить.
- Папка `reports` содержит пример авансового отчета, полученный по завершению работы скрипта.## Как начать
### Первый шаг
Скачайте python и загрузите необходимые библиотеки с сайта `requirements.txt`.Вам нужно перейти в нужный каталог и загрузить все библиотеки:
```commandline
cd example/path/to/script_folder
pip intall -r requirements.txt
```### Второй шаг
Настройте его `config.py` при необходимости (если вы используете шаблоны, вам это не нужно).
Макрос уже находится в файле `input.xlsm`, а его код можно просмотреть в `macros_code.vb.txt`. Для корректной работы **вам необходимо настроить его в Excel**, а именно указать пути:
- `pythonExe`: путь к интерпретатору python;
- `PythonScript`: путь к скрипту `main.py`;
- `SavePath`: путь для сохранения окончательного отчета.