i am currently using VBA on Word and would love to switch to python-docx. So i had a question. Within VBA it has a paragraph and sentence object and i can iterate over every sentence like this... Word VBA know what a paragraph, sentence and word and its easy to iterate and make specific changes.....
How can i accomplish this with python-docx? is the Word VBA object model available to me in python-docx? thanks for any insight.
'// loop over each sentence and word in a Word document (using VBA IDE in MS Word)
Dim s As Range
For Each s In ActiveDocument.Sentences
s.Select
for each wrd in s
wrd.Select
next
next
i am currently using VBA on Word and would love to switch to python-docx. So i had a question. Within VBA it has a paragraph and sentence object and i can iterate over every sentence like this... Word VBA know what a paragraph, sentence and word and its easy to iterate and make specific changes.....
How can i accomplish this with python-docx? is the Word VBA object model available to me in python-docx? thanks for any insight.