Macros Coding
Macros Coding
Sub allSlideFontchange()
If oshp.HasTextFrame Then
If oshp.TextFrame.HasText Then
With oshp.TextFrame.TextRange.Font
.Size = 28
.Color.RGB = RGB(255, 0, 0)
.Bold = msoFalse
.Italic = msoFalse
.Shadow = False
End With
End If
End If
End If
If oshp.HasTextFrame Then
If oshp.TextFrame.HasText Then
With oshp.TextFrame.TextRange.Font
.Size = 30
.Color.RGB = RGB(0, 0, 0)
.Bold = msoFalse
.Italic = msoFalse
.Shadow = False
End With
End If
End If
End If
End If
Next oshp
Next osld
End Sub
Table of Content
Sub DirectoryWithoutHyperlinks()
Agenda (False)
End Sub
Sub DirectoryWithHyperlinks()
Agenda (True)
End Sub
Dim i As Integer
Dim o As Integer
' On Error Resume Next <<<<<<<<<<<<<<<<<<<<<<<< VERY VERY VERY BAD to have at start (or any
place usually)
intPos = InputBox("Which slides should the agenda be inserted before?", "Position of the agenda")
MsgBox "The selected value is greater than the number of slides in the presentation.“"
Exit Sub
End If
strAgendaTitel = InputBox("What heading do you want for the content slide?", "Enter titles")
For i = 1 To ActiveWindow.Selection.SlideRange.Count
SlideFollow(i) = ActiveWindow.Selection.SlideRange(i).SlideIndex
Next
For o = 1 To UBound(SlideFollow)
If ActivePresentation.Slides(SlideFollow(o)).Shapes.HasTitle Then
'Build up the ToC Text
strTitel = ActivePresentation.Slides(SlideFollow(o)).Shapes.Title.TextFrame.TextRange.Text
End If
Next
'Insert blank slides where you want, enter titles and headings
slAgenda.Shapes(1).TextFrame.TextRange = strAgendaTitel
slAgenda.Shapes(2).TextFrame.TextRange = strSel
'Insert Hyperlinks
If Hyperlinks Then
For o = 1 To UBound(SlideFollow)
strTitel = ActivePresentation.Slides(SlideFollow(o) +
1).Shapes.Title.TextFrame.TextRange.Text
With slAgenda.Shapes(2).TextFrame.TextRange.Paragraphs(o).ActionSettings(ppMouseClick)
.Action = ppActionHyperlink
.Hyperlink.Address = ""
End With
End If
Next
End If
End Sub
Save as PDF
Sub SavePresentationAsPDF()
pptName = ActivePresentation.FullName
End Sub