A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Retrieve background pic



 
 
Thread Tools Display Modes
  #1  
Old October 8th, 2008, 04:46 PM posted to microsoft.public.powerpoint
edward
external usenet poster
 
Posts: 420
Default 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  
Old October 8th, 2008, 06:19 PM posted to microsoft.public.powerpoint
Steve Rindsberg
external usenet poster
 
Posts: 9,366
Default 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  
Old October 8th, 2008, 07:10 PM posted to microsoft.public.powerpoint
John Wilson
external usenet poster
 
Posts: 6,023
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:24 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.