Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting a *.tif in Word

Status
Not open for further replies.

rpthomas

Programmer
Feb 2, 2002
7
US
I am trying to programically format a picture in Word with no success. Here are the steps I am taking;

First I insert a *.tif into a Word Document. Then select 'Format | Picture | Layout' select 'Tight and click Left'. This works fine when done manually, but when I try to record these steps, the 'Wrapping Style' Options are greyed out.

Next when I tried the following code on the unformatted *.tif, Word generages the error "4198", Command Failed;

Selection.ShapeRange.WrapFormat.Type = wdWrapTight
Selection.ShapeRange.Left = wdShapeLeft
Selection.ShapeRange.Top = InchesToPoints(0)

Any Ideas on how this can be done in a Macro?

Thank you
Roland Thomas
 
You are probably using insert object to insert the pic. Try using insert file instead while recording the macro.

HTH

Indu
Member AAAA (Association Against Acronym Abuse)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top