[GIS] Opening QGIS using VBA and executing Python script

pythonqgisvba

Using VBA, I want to open QGIS (the actual GUI) and execute a simple script through the Python console or the editor.

Best Answer

QGIS can take a --code that you can pass a Python file to in order to run.

qgis --code my myfile.py

Run this command from the VBA shell command.