I need to copy excel data to powerpoint slides but shape get truncated after paste special.
This is my code:
Set myShape = mySlide.Shapes("obj" & i)
mySlide.Shapes.PasteSpecial DataType:=2
Set newShape = mySlide.Shapes(mySlide.Shapes.Count)
newShape.LockAspectRatio = msoFalse
newShape.Left = myShape.Left
newShape.Top = myShape.Top
newShape.Height = myShape.Height
newShape.Width = myShape.Width
myShape.Delete
I need to replace existing shapes same as their properties so I first get the shape and set its properties to new shape and then delete it.
Before I run the code the shape is this:
After shape is this(truncated):
I tried other data types also but in vain.