Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Word VBA picture formatting (layout behind text)

Posted on 2003-10-30
2
Medium Priority
?
2,224 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

649 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