R
Robin Tucker
Having trouble adding a shape at the current insertion point in the
document, when the user clicks a button on one of my forms:
Set theShape = ActiveDocument.Shapes.Add(msoShapeRectangle, 0#, 0#, 10#,
10#)
I want to add a rectangle, of size 10, 10 at the current position. Seems
that the selection object does not have a Shapes property, although it does
have an "inline shapes" property - this property does not have an "addshape"
method, only addpicture, addole etc.
Can anyone tell me how to do this?
Thanks.
document, when the user clicks a button on one of my forms:
Set theShape = ActiveDocument.Shapes.Add(msoShapeRectangle, 0#, 0#, 10#,
10#)
I want to add a rectangle, of size 10, 10 at the current position. Seems
that the selection object does not have a Shapes property, although it does
have an "inline shapes" property - this property does not have an "addshape"
method, only addpicture, addole etc.
Can anyone tell me how to do this?
Thanks.