Solved

Word VBA picture formatting (layout behind text)

Posted on 2003-10-30
2
2,131 Views
Last Modified: 2007-12-19
I'm trying to write a simple macro to allow allow a user to modify a pasted picture format. With the default paste, the picture is pasted as an Enhanced Metafile (which is fine). However, the layout is automatically Inline with Text. I'd like it to be behind the text (for easier maniupuation in documents) but can't seem to accomplish that with macros. Am I missing something here?

Thanks.
0
Comment
Question by:dilgerr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
a_pravarakhya earned 125 total points
ID: 9650439
Record new macro doesnt work here: use this code:
ActiveDocument.InlineShapes(1).ConvertToShape
This will convert the inline shape to a shape and hence it will be behind the text.
0
 
LVL 3

Expert Comment

by:a_pravarakhya
ID: 9650461
you need to know the index of the inline shape that you want to convert. assuming it will always be the first shape that needs to be converted to a shape, use this:

ActiveDocument.InlineShapes(0).ConvertToShape


Regards,
Pravarakhya
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

730 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