This script allows you to copy the contents of a Microsoft Word document and paste them automatically into a new Microsoft PowerPoint presentation without any manual intervention. The script uses the win32com
module in Python to communicate with the Microsoft Office applications.
- Microsoft Office installed (for Word and PowerPoint) and activated
- Python 3.x
win32com
module
- Clone the repository to your local machine.
- Install the required Python modules by running
pip install -r requirements.txt
. - Open the
config.ini
file and set the file paths for the Word document and PowerPoint presentation. - Run the script by executing
python main.py
in your terminal.
- Set the file paths for the Word document and PowerPoint presentation in the word_path and ppt_path variables, respectively, at the beginning of the script.
- Run the script in a Python environment or IDE of your choice.
- The script will automatically open the Word document, copy its contents, create a new PowerPoint presentation, paste the copied content into a new slide, and save the presentation to the specified file path.