Bullet colours not changing

Robie
5StarLounger
Posts: 656
Joined: 18 Feb 2010, 14:26

Bullet colours not changing

Post by Robie »

Hi

I set the colour for my bullets/page number backgroun depending the user selection. It works fine for standard slides but doesn't for some. I don't understand. Attached image shows the bullet to be mauve colour when they should be blue.
bulletsnot changing.png
I use the following routine (supplied by Hans to change the colours of the bullet).

Code: Select all

Sub SetBulletColor(lngColour As Long)
    Dim i As Integer
    
    ' Set color for all bullet levels
    For i = 1 To 5
      ActivePresentation.SlideMaster.TextStyles(ppBodyStyle).Levels(i).ParagraphFormat.Bullet.Font.Color = lngColour
    Next i
End Sub
To test, I started new presentation and copy the contents of the offending textbox but it still comes across as 'mauve' bullet and I can't change it. In the new presentation if I create a similar slide and add info to it then the bullets are *correctly* coloured. Any ideas, highly appreciated - running against time here.

Thanks.
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78443
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Bullet colours not changing

Post by HansV »

My code applies to the text placeholders, not to text boxes.
Best wishes,
Hans

Robie
5StarLounger
Posts: 656
Joined: 18 Feb 2010, 14:26

Re: Bullet colours not changing

Post by Robie »

HansV wrote:My code applies to the text placeholders, not to text boxes.
Ah! OK. That makes sense. Thanks for clearing that up Hans.