VBA - Formating Images in headers and Footers

E

Elliott

Hi,
I am inserting an A4 image into the header of word using VBA and having
trouble changing the Picture properties in word through VBA.

Does anyone know the VBA for changing the following in which are normally
accessed by right clicking on the picture and selecting Menu/ Picture options:

1. Setting the Scale and Height of a picture to 100%; and

2. Setting the Layout properties for the image to Behind text.

Kind regards
 
J

Jonathan West

Hi Elliot,

When you insert the object, set it to an object variable like this

Dim oShape as Shape
Set oShape = ActiveDocument.Shapes.Add(parameters go here)

You then have the oShape object variable which is of type Shape. You can
then set properties of oShape such as the Height, Width & ZOrder.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 

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