08-10-24 04:10 PM
Is there any action or way to get number of tables present in Word Document?
4 weeks ago
Add an action on word vbo with a code like this
Dim objWord As Object
Dim doc As Object
Dim tableCount As Integer
objWord = GetDocument(application, "DocumentPath")
doc = objWord.Documents.Open("C:\Path\To\Your\Document.docx")
tableCount = doc.Tables.Count
' Return the table count
Outputs("TableCount") = tableCount
doc.Close
objWord.Quit