• Formatting shape color for all slides at once

    Home » Forums » AskWoody support » Productivity software by function » MS PowerPoint and presentation apps » Formatting shape color for all slides at once

    Author
    Topic
    #483059

    I would like to format the shape of the title and content of all my slides to a white background. To do each slide individual, I first select the header, right click, select format shape , select the color and close. To make the content white, I select the content and follow the same procedure

    I would like to be able to do this for all my slides i.e select a white background for all of them at once

    Your assistance in this regard will be most appreciated

    Viewing 6 reply threads
    Author
    Replies
    • #1331325

      You can do this with code:

      Sub fixme()
      Dim osld As Slide
      For Each osld In ActivePresentation.Slides
      On Error Resume Next
      If osld.Shapes.HasTitle Then _
      osld.Shapes.Title.Fill.ForeColor.RGB = vbWhite
      Next osld
      End Sub

      How to use

      • #1331450

        Hi John

        It would be appreciated if you would amend you code so that all the slide headings and content will change to a white background. I also need the theme color to be black

        Regards

        Howard

    • #1331402

      Hi John

      Thanks for the help, much appreciated

    • #1331721

      You’ll need to explain a little more

      Do you mean all placeholders to have a white background? Or maybe Placeholders and textboxes.
      Theme Color = Black – what does that mean?? (or rather what do you think it means. Maybe text is black?

      In the meantime see if this helps

      Sub fixme2()
      Dim osld As Slide
      Dim oshp As Shape
      For Each osld In ActivePresentation.Slides
      For Each oshp In osld.Shapes
      If oshp.Type = msoPlaceholder Then
      oshp.Fill.ForeColor.RGB = vbWhite
      If oshp.HasTextFrame Then oshp.TextFrame.TextRange.Font.Color = vbBlack
      End If
      Next oshp
      Next osld
      End Sub

    • #1331744

      Hi John

      Thanks for the help. Code works perfectly.

    • #1331871

      Just an aside:
      I wonder when you said set the placholders to white you really meant “No Fill”?

      if so make this change

      If oshp.Type = msoPlaceholder Then
      oshp.Fill.Visible=msoFalse ‘ change here
      If oshp.HasTextFrame Then oshp.TextFrame.TextRange.Font.Color = vbBlack
      End If

    • #1333124

      Thanks for the info

    • #1341629

      Hi Howard,

      Maybe what you’re really looking for is the Slide Master. Click View, Master, Slide Master. Making changes here will set the defaults. Manually altered slides will not be affected.

      It may be a bit more complicated, I’m running Office 2010 now, and don’t recall all the steps for 2003.

    Viewing 6 reply threads
    Reply To: Formatting shape color for all slides at once

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: