Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 901605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:34:55+00:00 2026-05-15T15:34:55+00:00

Given a slide how can one figure out if all the slide layout placeholders

  • 0

Given a slide how can one figure out if all the slide layout placeholders are in use in PowerPoint?

Can one prevent auto usage of a placeholder when adding a picture if that placeholder is not in use?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:34:56+00:00Added an answer on May 15, 2026 at 3:34 pm

    You would need to loop through all the placeholders on the slide, determine each one’s type and then check to see if it is filled with the format that expected. There are 18 PpPlaceholderType, so you’d have to set them all up, but the below is a sample of what you can do to check to see if a placeholder is in use.

    Sub CheckPlaceholders()
    Dim ap As Presentation: Set ap = ActivePresentation
    Dim sl As Slide: Set sl = ap.Slides(2)
    Dim shs As Shapes: Set shs = sl.Shapes
    Dim ph As Placeholders: Set ph = shs.Placeholders
    Dim p As Shape
        For Each p In ph
            Select Case p.Type
            Case PpPlaceholderType.ppPlaceholderHeader
                If p.TextFrame.HasText Then
                    Debug.Print "This Placeholder is in use"
                End If
            Case PpPlaceholderType.ppPlaceholderChart
                If p.HasChart Then
                    Debug.Print "This Placeholder is in use"
                End If
            End Select
        Next
    End Sub
    

    To insert, say, a picture and not have it arrive in a placeholder, the only way I’ve found is to create a loop to add pictures until one of them is out of a placeholder and then delete the ones already inserted.

    Sub AddPicture()
        Dim pic As String
        pic = "C:\Users\Me\Desktop\beigeplum.jpg"
        Dim ap As Presentation: Set ap = ActivePresentation
        Dim sl As Slide: Set sl = ap.Slides(1)
        Dim sh As Shape
    
        Do
            Set sh = sl.Shapes.AddPicture(pic, msoFalse, msoTrue, 1, 1)
            sh.Tags.Add "MYPICTURE", 0
        Loop Until sh.Type <> 14
    
        Dim p As Shape
        For Each p In sl.Shapes
            If p.Type = 14 Then
                If p.Tags.count > 0 Then
                    If p.Tags.Name(1) = "MYPICTURE" Then
                        p.Delete
                    End If
                End If
            End If
        Next
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given a package, how can I automatically find all its sub-packages?
I'm trying to figure out how I can define validation rules for my domain
So I've been trying to figure this out for awhile and can't seem to
I can't figure out what I'm missing here. Here's the problem: Consider a (Control|Data)Template
Given an Applet in one frame in a multi-frame web application where all frames
I am trying to figure out how to create an optimal solution for my
I'm trying to figure out the best way to handle a dropdown list where
I have spent hours trying to figure this problem and i just can't, so
I'm trying to figure out how to best keep revision/history information on revisions to
I'm having a strange problem which I cannot figure out for the life of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.