S
Sam
Hi,
I am copying slides by using code from:
http://skp.mvps.org/pptxp001.htm
However, the footers are not getting copied. So I am doing this additional processing:
'add Footer
If CBool(sldSource.HeadersFooters.Footer.Visible) Then
With sldInserted.HeadersFooters.Footer
.Visible = msoTrue
.Text = ppPresSource.Slides(mySlide.SlideIndex).HeadersFooters.Footer.Text
End With
End If
If CBool(sldSource.HeadersFooters.DateAndTime.Visible) Then
sldInserted.HeadersFooters.DateAndTime.Visible = msoTrue
If CBool(sldSource.HeadersFooters.DateAndTime.UseFormat) Then
sldInserted.HeadersFooters.DateAndTime.UseFormat = msoTrue
Else
sldInserted.HeadersFooters.DateAndTime.Text = ppPresSource.Slides(mySlide.SlideIndex).HeadersFooters.DateAndTime.Text
End If
End If
sldInserted.HeadersFooters.SlideNumber.Visible = sldSource.HeadersFooters.SlideNumber.Visible
Could anyone please confirm if this is correct? Is it really that we need to explicitly copy footers?
Regards,
Sam
I am copying slides by using code from:
http://skp.mvps.org/pptxp001.htm
However, the footers are not getting copied. So I am doing this additional processing:
'add Footer
If CBool(sldSource.HeadersFooters.Footer.Visible) Then
With sldInserted.HeadersFooters.Footer
.Visible = msoTrue
.Text = ppPresSource.Slides(mySlide.SlideIndex).HeadersFooters.Footer.Text
End With
End If
If CBool(sldSource.HeadersFooters.DateAndTime.Visible) Then
sldInserted.HeadersFooters.DateAndTime.Visible = msoTrue
If CBool(sldSource.HeadersFooters.DateAndTime.UseFormat) Then
sldInserted.HeadersFooters.DateAndTime.UseFormat = msoTrue
Else
sldInserted.HeadersFooters.DateAndTime.Text = ppPresSource.Slides(mySlide.SlideIndex).HeadersFooters.DateAndTime.Text
End If
End If
sldInserted.HeadersFooters.SlideNumber.Visible = sldSource.HeadersFooters.SlideNumber.Visible
Could anyone please confirm if this is correct? Is it really that we need to explicitly copy footers?
Regards,
Sam