?
Solved

Word VBA picture formatting (layout behind text)

Posted on 2003-10-30
2
Medium Priority
?
2,179 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 500 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month10 days, 12 hours left to enroll

764 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