• Change bullet colour using VBA in PP2003

    Author
    Topic
    #475175

    Is it possible to change the colours of the bullets (Level 1 thru to level 5) in a ppt?

    That is, I could have a presentation with n pages and now I would like to change the default bullet colours for all pages (the colours is determined by the available six company colours to the user)? This needs to be done as a macro so that the user just has to select the available company colours & it changes the bullets to match the selected colour.

    Thanks.

    Robie

    Viewing 0 reply threads
    Author
    Replies
    • #1270109

      You can reference the bullet like this (assuming oshp is a reference to the shape with the text)
      oshp.TextFrame.TextRange.ParagraphFormat.Bullet.Font.Color.RGB = RGB(255, 0, 0) you would then need to check every shape – CAN it have text, does it,does it have bullets >>> change colour.

      Assuming your users follow the master with their work, (which may not be true!)
      You might want to do this on the slide master instead of every slide

      If you need to build a solution giving the user the option of a preset series of RGBs you would need to make a user form or dropdown menu which would be more tricky!

      • #1270927

        You can reference the bullet like this (assuming oshp is a reference to the shape with the text)
        oshp.TextFrame.TextRange.ParagraphFormat.Bullet.Font.Color.RGB = RGB(255, 0, 0) you would then need to check every shape – CAN it have text, does it,does it have bullets >>> change colour.

        Assuming your users follow the master with their work, (which may not be true!)
        You might want to do this on the slide master instead of every slide

        If you need to build a solution giving the user the option of a preset series of RGBs you would need to make a user form or dropdown menu which would be more tricky!

        Thanks John. I managed to create a userform. Your VBA bit was the missing piece. It works a treat. :clapping::fanfare:

    Viewing 0 reply threads
    Reply To: Change bullet colour using VBA in PP2003

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

    Your information: