Solved

Anchor Position of pictures

Posted on 2003-10-23
2
528 Views
Last Modified: 2011-10-03
Hello,

Is there a way to get the position of the anchor a picture inserted in a word document using vba?

regards
0
Comment
Question by:vblycos
2 Comments
 
LVL 44

Accepted Solution

by:
bruintje earned 50 total points
ID: 9612388
the problem is this property is exposed through the shape object not an inlineshape

so if your pictures are inlineshapes and you don't mind converting them to shapeobjects you could do something like

Dim iShape As InlineShape
Dim oShape As Shape
Dim lHort As Double
  For Each iShape In ThisDocument.InlineShapes
    Set oShape = iShape.ConvertToShape
    lHort = oShape.Anchor.Information(wdHorizontalPositionRelativeToPage)
    MsgBox lHort
  Next

that will display the horizontal anchor

if you want to keep the inlineshapes [because they can wrap text around them] then maybe someone else has an idea
0
 
LVL 4

Author Comment

by:vblycos
ID: 9618693
Thanks bruintje..I used your solution of shapeobjects....that seems to be giving fair results sofar...Thanks!

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
stop word moving down 2 49
filter options in excel 2013 or 2016 3 41
Display multiple images in report 12 103
Excel 2016 formulas 5 24
Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now