Posts by MufasaComp • 1 point
1 post
-
0
votes0
answers85
viewsQ: How to run a Word Macro via Python?
import os import comtypes.client path=r"path to the .docm file where I saved the vba macro" word=comtypes.client.CreateObject("Word.Application") word.Documents.Open(path,ReadOnly=1)…