Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Drawing and Graphics

Reply
 
LinkBack Thread Tools Display Modes
  #1  
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
  #2  
Old 05-14-2019, 03:44 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,392
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

Placement is a Shape property in Excel, not in Word.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #3  
Old 05-15-2019, 08:44 AM
BG56 BG56 is offline Windows 10 Office 2016
Novice
 
Join Date: Oct 2018
Posts: 6
BG56 is on a distinguished road
Default Thanks - makes sense

macropod - thanks for your reply. That totally makes sense.
Reply With Quote
Reply

Tags
shape placement

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text placement in a table need to be changed rafal.lesz Word 3 03-14-2019 09:33 AM
Vertical placement of text within table msword_matt Word Tables 2 02-21-2019 02:04 PM
Finicky Endnotes Placement on Page daydreamingdude Word 1 01-28-2019 03:41 AM
Random placement of merged records ARS Word 2 10-19-2017 02:03 PM
reliable graphics placement eNGiNe Word 4 02-03-2012 01:20 AM


All times are GMT -7. The time now is 11:00 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft