Making the background of an inserted image transparent

K

Kate Moncrieff

Hi,

I'm working on a macro which inserts a metafile image into
a document and then resizes, repositions and ungroups it.
I'd like the macro to finally make the background of the
inserted image transparent but can't seem to find a way to
do this.

I can do it manually in Word by right-clicking on the
background of the ungrouped image, choosing the "Format
Autoshape..." option and changing the Fill colour on
the "Colours and Lines" page to "No fill". However, when
I try and record all this in VB, the actions are ignored.

Can anyone help? Many thanks!

Kate
 
W

Word Heretic

G'day "Kate Moncrieff" <[email protected]>,

Hmmm... check out the OleFormat verbs.


Kate Moncrieff said:
Hi,

I'm working on a macro which inserts a metafile image into
a document and then resizes, repositions and ungroups it.
I'd like the macro to finally make the background of the
inserted image transparent but can't seem to find a way to
do this.

I can do it manually in Word by right-clicking on the
background of the ungrouped image, choosing the "Format
Autoshape..." option and changing the Fill colour on
the "Colours and Lines" page to "No fill". However, when
I try and record all this in VB, the actions are ignored.

Can anyone help? Many thanks!

Kate

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email (e-mail address removed)
Products http://www.geocities.com/word_heretic/products.html

Replies offlist may require payment.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top