DEV Community

Oscar Sun(孫守真字任真)
Oscar Sun(孫守真字任真)

Posted on

Answer: Word VBA to check every object in the doc is smaller than page margin

Because flag with <TOO_LARGE> on top of every page will change the original content, I bookmark those objects instead. You can try it first:

Sub CheckObjectMargins()
    Dim doc As Word.Document, rng As Range, i As Long, c As Word.cell
    Dim obj As Object, objWidth As Single
    Dim objs As New

Top comments (0)