Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2005

Tip: Looking for answers? Try searching our database.

VBA - Formating Images in headers and Footers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Elliott - 18 Oct 2005 12:31 GMT
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
Jonathan West - 18 Oct 2005 13:31 GMT
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.

Signature

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

> Hi,
> I am inserting an A4 image into the header of word using VBA and having
[quoted text clipped - 9 lines]
>
> Kind regards
Elliott - 19 Oct 2005 17:54 GMT
Thank you Jonathan.

This will come in very useful.

Cheers

Elliott

> Hi Elliot,
>
[quoted text clipped - 19 lines]
> >
> > Kind regards
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.