VBA : Number the slide if they are visible
问题 I have a powerpoint presentation with hidden slides. I want to number only the visible slides. I got this code : Sub Numerotation() Dim x As Integer Dim diapo As Slide For Each diapo In ActivePresentation.Slides If diapo.SlideShowTransition.Hidden = False Then x = x + 1 diapo.HeadersFooters.Footer.Text = x Else diapo.HeadersFooters.Footer.Text = "" End If Next End Sub I got this error : Execution Error : '-2147188160 (80048240)': HeaderFooter (unknown member) : Invalid request I don't