Thanks but I do not have a problem getting the picture in to the documents but with the formatting properties.
Chris
Main Topics
Browse All TopicsHi,
I am not a regular coder and struggle with VB.
I am creating templates for a user in MS Word and having difficulties placing a logo correctly into the header of a document. The user calls the import of the logo from a button on a toolbar.
The logo needs to go into the header (which I can do) and then I need to change the properties of the picture to have tight wraptext properties (in word you right click on the picture, format picture, layout, wrapping style TIGHT) - it will not let you do this when macro recording so I cannot plagiarise the code from there.
Here is my code:
'ADD THE LOGO PICTURE TO THE HEADER *** THIS WORKS ****
ActiveDocument.Sections(1)
'Convert the picture from an inline object to a shape so that it's properties can be managed ** I THINK THIS NEEDS TO BE DONE BUT NOT SURE ****
For Each iShape In ActiveDocument.InlineShape
iShape.ConvertToShape
Next iShape
'Change the properties of the picture to have a tight wrap format - **** THIS DOES NOT WORK ***
ActiveDocument.Sections(1)
If anyone can offer any suggestions or a better way of doing this then I would be most grateful.
Thanks
Chris
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thanks for your help guys but none has worked.
I have had to do this another way using the following code:
'ADD THE LOGO PICTURE TO THE HEADER
ActiveDocument.Sections(1)
ChangeFileOpenDirectory "c:\temp"
ActiveDocument.SaveAs
'Convert the picture from an inline object to a shape so that it's properties can be managed
For Each iShape In ActiveDocument.Sections(1)
Set shp = iShape.ConvertToShape
Next iShape
'Change the properties of the picture to have a tight wrap format
shp.WrapFormat.Type = wdWrapTight
Cheers
Chris
Business Accounts
Answer for Membership
by: ryancysPosted on 2005-01-06 at 07:29:54ID: 12972859
See this if help: http:Q_20292962.html