iowa_70
10-16-2009, 04:55 AM
Hi, I'm copying a range of cells from Excel and then pasting them into PowerPoint 2000. When I paste the pictures they all have the default name "Picture 1, 2,.....etc". How do I rename them something else when pasting?
Thanks!
...
iForced = 0
MaxNumForced = Sheets("Objects").Range("A1")
For iForced = 1 To MaxNumForced
'Copy range as a picture
Sheets("Objects").Select
Range("Forced_" & iForced).Select
Selection.CopyPicture Appearance:=xlScreen, Format:=xlPicture
' Paste the range
PPSlide.Shapes.Paste.Select
' Align the pasted range
PPApp.ActiveWindow.Selection.ShapeRange.Align msoAlignCenters, True
PPApp.ActiveWindow.Selection.ShapeRange.Align msoAlignMiddles, True
Next iForced
....
Thanks!
...
iForced = 0
MaxNumForced = Sheets("Objects").Range("A1")
For iForced = 1 To MaxNumForced
'Copy range as a picture
Sheets("Objects").Select
Range("Forced_" & iForced).Select
Selection.CopyPicture Appearance:=xlScreen, Format:=xlPicture
' Paste the range
PPSlide.Shapes.Paste.Select
' Align the pasted range
PPApp.ActiveWindow.Selection.ShapeRange.Align msoAlignCenters, True
PPApp.ActiveWindow.Selection.ShapeRange.Align msoAlignMiddles, True
Next iForced
....