VBA Express Forum  
Google
 




Go Back   VBA Express Forum > VBA Code & Other Help > PowerPoint Help
     Feedback     
Register FAQ Members Arcade KBase Articles

Reply
 
Thread Tools Display Modes
Old 06-05-2008, 03:02 PM   #1
Rome

 
Joined: Jun 2008
Posts: 7
Kb Entries: 0
Articles: 0
Question Numbering Every Other Slide

Hello,
I'm looking for a way to number every other slide in PowerPoint sequentially. For example:
  • Slide 1 = <no page number>
  • Slide 2 = Page 1
  • Slide 3 = <no page number>
  • Slide 4 = Page 2
  • Slide 5 = <no page number>
  • Slide 6 = Page 3
  • and so on...
Is this possible? Any ideas?

Thanks a lot,
Rome

Local Time: 11:33 PM
Local Date: 09-08-2010
Location:

 
Reply With Quote Top
Old 06-06-2008, 02:24 PM   #2
Cosmo

 
Joined: May 2008
Posts: 118
Kb Entries: 0
Articles: 0
This will set the footer to the page number

VBA:
Dim i As Integer Dim j As Integer For i = 1 To ActiveWindow.Presentation.Slides.Count j = i * 2 If j <= ActiveWindow.Presentation.Slides.Count Then With ActiveWindow.Presentation.Slides(j).HeadersFooters.Footer .Text = "Page " & i .Visible = msoTrue End With With ActiveWindow.Presentation.Slides(j - 1).HeadersFooters.Footer .Text = "" End With End If Next i
VBA tags courtesy of www.thecodenet.com

Last edited by Cosmo : 06-06-2008 at 03:23 PM.

Local Time: 11:33 PM
Local Date: 09-08-2010
Location:

 
Reply With Quote Top
Old 06-10-2008, 02:40 PM   #3
Rome

 
Joined: Jun 2008
Posts: 7
Kb Entries: 0
Articles: 0
Thanks a lot Cosmo! Appreciate the quick reply.

Local Time: 11:33 PM
Local Date: 09-08-2010
Location:

 
Reply With Quote Top
Old 06-11-2008, 04:19 PM   #4
Rome

 
Joined: Jun 2008
Posts: 7
Kb Entries: 0
Articles: 0
Follow up question - Is there a way to modify the code so that Page 1 starts on Slide 3?

Local Time: 11:33 PM
Local Date: 09-08-2010
Location:

 
Reply With Quote Top
Old 06-12-2008, 07:13 AM   #5
John Wilson

 
Joined: Feb 2007
Posts: 365
Kb Entries: 1
Articles: 0

VBA:
Sub nums() Dim i As Integer Dim num As Integer For i = 3 To ActivePresentation.Slides.Count Step 2 num = num + 1 With ActivePresentation.Slides(i).HeadersFooters.Footer .Visible = True .Text = "Slide " & num End With Next End Sub
VBA tags courtesy of www.thecodenet.com



John Wilson
Microsoft PowerPoint MVP
Amazing Free PowerPoint Tutorials
http://www.pptalchemy.co.uk/powerpoint_hints_and_tips_tutorials.html

Local Time: 11:33 PM
Local Date: 09-08-2010
Location:

 
Reply With Quote Top
Old 06-12-2008, 01:03 PM   #6
Rome

 
Joined: Jun 2008
Posts: 7
Kb Entries: 0
Articles: 0
Perfect

Local Time: 11:33 PM
Local Date: 09-08-2010
Location:

 
Reply With Quote Top
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Free Ecards | PT Cruiser | Find jobs | Debt Help | Cheap Home Insurance


All times are GMT -4. The time now is 11:33 PM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright @2004 - 2009 VBA Express