none
(PowerPoint) VBA - See if a slide has a picture inserted in Background RRS feed

  • Question

  • Hi !

    Trying to find some way with VBA to see if a slide has a picture inserted to background.

    Something along ActivePresentation.Slides(1).Background......

    Cant find the right object/member for this.

    BR Ivashu

    Friday, August 14, 2015 12:24 PM

Answers

  • >>>Trying to find some way with VBA to see if a slide has a picture inserted to background.

    You could use FillFormat.Type Property to see if a slide has a picture inserted to background.

    If ActivePresentation.Slides(1).Background.Fill.Type = msoFillPicture Then
         MsgBox "User Picture"
    Else
         MsgBox "No User Picture"
    End If

    For more information, click here to refer about FillFormat.Type Property

    Thursday, August 20, 2015 8:41 AM

All replies

  • >>>Trying to find some way with VBA to see if a slide has a picture inserted to background.

    You could use FillFormat.Type Property to see if a slide has a picture inserted to background.

    If ActivePresentation.Slides(1).Background.Fill.Type = msoFillPicture Then
         MsgBox "User Picture"
    Else
         MsgBox "No User Picture"
    End If

    For more information, click here to refer about FillFormat.Type Property

    Thursday, August 20, 2015 8:41 AM
  • Hi David !

    It works perfect ! :)

    Thank You !

    BR Ivashu

    Friday, August 28, 2015 7:41 AM