Microsoft Office Forums Shape.Placement - has Placement property gone away?

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-14-2019, 11:23 AM
BG56 BG56 is offline Shape.Placement - has Placement property gone away? Windows 10 Shape.Placement - has Placement property gone away? Office 2016
Novice
Shape.Placement - has Placement property gone away?
 
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 Shape.Placement - has Placement property gone away? Windows 7 64bit Shape.Placement - has Placement property gone away? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,525
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 Shape.Placement - has Placement property gone away? Windows 10 Shape.Placement - has Placement property gone away? Office 2016
Novice
Shape.Placement - has Placement property gone away?
 
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
Shape.Placement - has Placement property gone away? Text placement in a table need to be changed rafal.lesz Word 3 03-14-2019 09:33 AM
Shape.Placement - has Placement property gone away? Vertical placement of text within table msword_matt Word Tables 2 02-21-2019 02:04 PM
Shape.Placement - has Placement property gone away? 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 05:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft