![]() |
|
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
Placement is a Shape property in Excel, not in Word.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#3
|
|||
|
|||
|
macropod - thanks for your reply. That totally makes sense.
|
|
| Tags |
| shape placement |
|
|
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 |