C
Colleyville Alan
I am copying a range from Excel and pasting it to PPT. I want to insert the
info as a picture, so since pre PPT2002 VBA code does not have a way to
emulate the PasteSpecial as Picture, I am using Excel's CopyPicture method
and a straigthforwar Paste in PPT.
Problem - as soon as I paste the image, I want to resize it and set the
spacing. The code I use is:
oPPT.ActivePresentation.Slides(slideindexvar).Shapes.Paste 'pastes image
With oPPT.ActiveWindow.Selection.ShapeRange
.Height = 620
.Width = 650
.Left = 20
.Top = 80
End With
But I get an error message saying that nothing is selected. I had thought
that upon pasting, I'd still have the image selected just as I do in the
interactive mode. How can I now "select" this image in order to resize it?
Or is there some other way to resize?
Thanks
info as a picture, so since pre PPT2002 VBA code does not have a way to
emulate the PasteSpecial as Picture, I am using Excel's CopyPicture method
and a straigthforwar Paste in PPT.
Problem - as soon as I paste the image, I want to resize it and set the
spacing. The code I use is:
oPPT.ActivePresentation.Slides(slideindexvar).Shapes.Paste 'pastes image
With oPPT.ActiveWindow.Selection.ShapeRange
.Height = 620
.Width = 650
.Left = 20
.Top = 80
End With
But I get an error message saying that nothing is selected. I had thought
that upon pasting, I'd still have the image selected just as I do in the
interactive mode. How can I now "select" this image in order to resize it?
Or is there some other way to resize?
Thanks