Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to select the shape in the active row or active cell and delete
that shape before pasting a new shape in the active cell. Sometimes the cell will have a shape in it and will need to be replaced and other times the cell will be empty and will be just a copy and paste of the autoshape into the active cell. I don't think I can go with the shapes name as that will change each time I paste the new shape in the active cell. Here is the code I have so far that copys and paste into empty active cell. ActiveCell.Select Selection.ClearContents ActiveSheet.Shapes("AutoShape 7").Select Selection.Copy ActiveCell.Select ActiveSheet.Paste Also is there a way to center the shape in the active cell thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to select a shape | Excel Programming | |||
Possible to select a range of cells from a Shape Object | Excel Programming | |||
Select shape leading to Out of memory | Excel Programming | |||
Run-Time Error: You must select a shape | Excel Worksheet Functions | |||
Select Multiple Shape Objects | Excel Programming |