Avatar of Keith McElroy
Keith McElroy

asked on 

jquery-like closest property in Microsoft Word?

I am automating Microsoft Word documents using the following structure

bookmark
h3 header
  table
      row
         cell
             Range.Text

Are there any properties or functions already available that would allow a statement such as the following or at least be usable to achieve
that capability?

myvar = mycell.closest("bookmark").find(h3).text
VB ScriptMicrosoft Word

Avatar of undefined
Last Comment
GrahamSkan

8/22/2022 - Mon