Thread: [Solved] Wrap each image behind text
View Single Post
 
Old 12-10-2020, 01:44 AM
eduzs eduzs is offline Windows 10 Office 2019
Expert
 
Join Date: May 2017
Posts: 266
eduzs is on a distinguished road
Default

Based on your code, this seems to works fine:

Code:
Dim hf As HeaderFooter, oShp As Shape, oSec As Section

For Each oSec In ActiveDocument.Sections
    For Each hf In oSec.Headers
        If hf.Exists Then
            For Each oShp In hf.Shapes
               oShp.WrapFormat.Type = wdWrapBehind
            Next oShp
        End If
    Next hf
Next oSec
Thanks!
__________________
Backup your original file before doing any modification.
Reply With Quote