Article ID: 178989
Article Last Modified on 10/11/2006
Placement style xlConstant ----------------------------------------------- Move and size with cells xlMoveAndSize Move but don't size with cells xlMove Don't move or size with cells xlFreeFloatingYou can control how objects are attached to cells by using the Format dialog box or by using Visual Basic for Application code.
'A button or other Forms object.
ActiveSheet.Shapes("Button 1").Placement = xlMoveAndSize
'An embedded chart.
ActiveSheet.ChartObjects("Chart 4").Placement = xlMove
'A drawing object or AutoShape.
ActiveSheet.Shapes("Rectangle 3").Placement = xlFreeFloating
120802 Office: How to Add/Remove a Single Office Program or Component
Additional query words: XL98
Keywords: kbhowto KB178989