J
JoAnn
I'm having trouble getting the displayed slide numbers in my presentation to
skip hidden slides. Using Office 2003 with an XP system.
I added John Wilson's code found in this site but it still doesn't work. Not
sure what I'm doing wrong.
Here is the code being used:
Sub numbers()
Dim osld As Slide
Dim i As Integer
For Each osld In ActivePresentation.Slides
If osld.SlideShowTransition.Hidden = False Then
i = i + 1
osld.HeadersFooters.Footer.Text = "Slide " & i
Else
osld.HeadersFooters.Footer.Text = "Slide " & i & "H"
End If
Next
With the footer set to show slide numbers, I get the original numbers
including the hidden slides. When I clear that box (since the code seems to
be displaying "slide" plus the number), I get nothing.
We do have something else in the footer (corporate stuff I'm not allowed to
remove) & it's possible that the slide number is hidden below it.
Is there any code that can be added to ensure the slide number appears in
the lower left corner of the footer, on top of anything else?
Also, once this is set will it stick? And adjust when other slides are
hidden or made visible? Do I need some kind of code to ensure it runs
automatically every time the presentation is opened?
Thanks for your help!
skip hidden slides. Using Office 2003 with an XP system.
I added John Wilson's code found in this site but it still doesn't work. Not
sure what I'm doing wrong.
Here is the code being used:
Sub numbers()
Dim osld As Slide
Dim i As Integer
For Each osld In ActivePresentation.Slides
If osld.SlideShowTransition.Hidden = False Then
i = i + 1
osld.HeadersFooters.Footer.Text = "Slide " & i
Else
osld.HeadersFooters.Footer.Text = "Slide " & i & "H"
End If
Next
With the footer set to show slide numbers, I get the original numbers
including the hidden slides. When I clear that box (since the code seems to
be displaying "slide" plus the number), I get nothing.
We do have something else in the footer (corporate stuff I'm not allowed to
remove) & it's possible that the slide number is hidden below it.
Is there any code that can be added to ensure the slide number appears in
the lower left corner of the footer, on top of anything else?
Also, once this is set will it stick? And adjust when other slides are
hidden or made visible? Do I need some kind of code to ensure it runs
automatically every time the presentation is opened?
Thanks for your help!