Stephpierre
10-30-2016, 12:12 PM
Hi everyone,
Long time lurker here, finally decided to make the jump and open an account. Hopefully I can help you guys out as much as you've done for me!
I'm currently working on putting together a little macro toolbar for myself. As a heavy PPT user I love little shortcuts to shave off those needed few seconds for simple processes. I have two little issues at hand, the first one I'm facing is putting together a Macro that will go through every object, in every slide and change the "Proofing language" to UK English. The reason this will be a life saver, is that currently when putting presentations together from different sources (and other languages), it doesn't put them into the default language of my PPT, and leaves horrible red lines underneath correctly spelled words (or doesn't detect when they're wrong...).
The second one is a code that I had found previously on this site (see below). What I am trying to achieve in addition, is to change the colour of the title back to what it was in the master. Is this even possible without manually giving it the RGB code?
Sub title_fix()
Dim osld As Slide
Dim oshp As Shape
Dim ocust As Shape
For Each osld In ActivePresentation.Slides
If osld.Shapes.HasTitle Then
Set oshp = osld.Shapes.Title
Set ocust = osld.CustomLayout.Shapes.Title
With oshp
.Left = ocust.Left
.Top = ocust.Top
.Height = ocust.Height
.Width = ocust.Width
.TextFrame2.TextRange.Font.Name = ocust.TextFrame2.TextRange.Font.Name
.TextFrame2.TextRange.Font.Size = ocust.TextFrame2.TextRange.Font.Size
.TextFrame2.TextRange.Font.Colour = ocust.TextFrame2.TextRange.Font.Colour (it bugs at 'Colour')
End With
End If
Next osld
End Sub
Hopefully someone out there has a little solution for me :)
Thanks!
S.p.
Long time lurker here, finally decided to make the jump and open an account. Hopefully I can help you guys out as much as you've done for me!
I'm currently working on putting together a little macro toolbar for myself. As a heavy PPT user I love little shortcuts to shave off those needed few seconds for simple processes. I have two little issues at hand, the first one I'm facing is putting together a Macro that will go through every object, in every slide and change the "Proofing language" to UK English. The reason this will be a life saver, is that currently when putting presentations together from different sources (and other languages), it doesn't put them into the default language of my PPT, and leaves horrible red lines underneath correctly spelled words (or doesn't detect when they're wrong...).
The second one is a code that I had found previously on this site (see below). What I am trying to achieve in addition, is to change the colour of the title back to what it was in the master. Is this even possible without manually giving it the RGB code?
Sub title_fix()
Dim osld As Slide
Dim oshp As Shape
Dim ocust As Shape
For Each osld In ActivePresentation.Slides
If osld.Shapes.HasTitle Then
Set oshp = osld.Shapes.Title
Set ocust = osld.CustomLayout.Shapes.Title
With oshp
.Left = ocust.Left
.Top = ocust.Top
.Height = ocust.Height
.Width = ocust.Width
.TextFrame2.TextRange.Font.Name = ocust.TextFrame2.TextRange.Font.Name
.TextFrame2.TextRange.Font.Size = ocust.TextFrame2.TextRange.Font.Size
.TextFrame2.TextRange.Font.Colour = ocust.TextFrame2.TextRange.Font.Colour (it bugs at 'Colour')
End With
End If
Next osld
End Sub
Hopefully someone out there has a little solution for me :)
Thanks!
S.p.