View Single Post
 
Old 05-14-2019, 11:23 AM
BG56 BG56 is offline Windows 10 Office 2016
Novice
 
Join Date: Oct 2018
Posts: 6
BG56 is on a distinguished road
Default Shape.Placement - has Placement property gone away?

Hi,
I'm trying to code a VBA macro to capture information on floating pictures - I'm using the shapes object and have captured all but placement - for some reason, the VBA compiler is giving an error "method or data member not found" - wonder if I'm missing something as placement does not appear in the list of properties to use for the shape object when I code it in VBA (others like Left, Width, Height and Top all work OK). Any suggestions appreciated. Code listed below

Code:
Sub demo3()
    Dim oShp As Shape
    For Each oShp In ActiveDocument.Shapes
        Debug.Print oShp.Height & ":" & oShp.Width & ":" & oShp.Top & ":" & oShp.Left & ":" & oShp.Placement
    Next
    Debug.Print "Demo2:DONE"
End Sub

Last edited by macropod; 05-14-2019 at 03:40 PM. Reason: Added code tags
Reply With Quote