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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word 97

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
My VB application sends a shape to an active word document.

Is there a way to set the picture (shape) in my Word document to the back so it is behind text?

Or could someone point me in the right direction.

Thanks
 
try something like this

Code:
yourShape.ZOrder msoSendBehindText
yourShape.WrapFormat.Type = wdWrapNone



From VBA help:

ZOrder Method

Moves the specified shape in front of or behind other shapes in the collection (that is, changes the shape's position in the z-order).

Syntax

expression.ZOrder(ZOrderCmd)

expression Required. An expression that returns a Shape object.

ZOrderCmd Required Long. Specifies where to move the specified shape relative to the other shapes. Can be one of the following MsoZOrderCmd constants: msoBringForward, msoBringInFrontOfText, msoBringToFront, msoSendBackward, msoSendBehindText, or msoSendToBack.



Type Property of the WrapFormat Property of a Shape or a Shape Range

Returns the wrap type for the specified shape. Can be one of the following WdWrapType constants: wdWrapNone, wdWrapSquare, wdWrapThrough, wdWrapTight, or wdWrapTopBottom. Read/write Long.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top