If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Retrieve background pic
IS it possible to retrieve background pic programatically ? after we insert a
pic in background ( slide or a cell) we don't have option to remove it we can only replace it with another pic , I couldn't find any VBA method to access to background pic and delete it. Am I right on my assumption that we can't retrieve background pic? -- Best regards, Edward |
#2
|
|||
|
|||
Retrieve background pic
In article , Edward wrote:
IS it possible to retrieve background pic programatically ? after we insert a pic in background ( slide or a cell) we don't have option to remove it we can only replace it with another pic , I couldn't find any VBA method to access to background pic and delete it. Am I right on my assumption that we can't retrieve background pic? That's correct, or at least not directly. If you just want to remove the picture, set the b/g fill to solid or the like. If you're trying to get at the original background picture, you can export the presentation to HTML and burrow around amongst the files that produces; you should find the original file there. ----------------------------------------- Steve Rindsberg, PPT MVP PPT FAQ: www.pptfaq.com PPTools: www.pptools.com ================================================ |
#3
|
|||
|
|||
Retrieve background pic
As Steve says there's no direct way to get the pic in vba
This might work though (assumes pic is on slide 1) Sub getbackground() Dim osld As Slide Dim i As Integer ActivePresentation.Slides(1).Duplicate Set osld = ActivePresentation.Slides(1) For i = osld.Shapes.Count To 1 Step -1 osld.Shapes(i).Delete Next i osld.Export "Insert your Path to save.jpg", _ "jpg", ActivePresentation.PageSetup.SlideWidth, _ ActivePresentation.PageSetup.SlideHeight osld.Delete End Sub -- Amazing PPT Hints, Tips and Tutorials http://www.pptalchemy.co.uk/powerpoi...tutorials.html _______________________________ "Edward" wrote: IS it possible to retrieve background pic programatically ? after we insert a pic in background ( slide or a cell) we don't have option to remove it we can only replace it with another pic , I couldn't find any VBA method to access to background pic and delete it. Am I right on my assumption that we can't retrieve background pic? -- Best regards, Edward |
Thread Tools | |
Display Modes | |
|
|