>I need the ability for users who open Power Point and reorder the slides.
>Currently, I do generate slide number as the power point is generated. Now
[quoted text clipped - 33 lines]
>> >
>> >Gary
Thank You. It looks very similiar to something that I did a macro recorder
on.
I just have a few question for my understanding.
1) I could put this in my Access VBA Code, but does this need to be in the
point point file inorder for it to work correctly??? Like when a person
opens up a PPT file, and move slide 3 to the top. Then the old 3 will not
be page 1. When it do that even if the code was generated in Access???
Or is the secret to it is allowing .SlideNumber to be visible in PPT that
does it all for me????
2) Do you think I can place the SlideNumber at a differerent location by
using VBA Code to indicate the location to place a .text and have the .text
set to the .SlideNumber???
Thank You Very Much
Gary
> Gary,
> I just tested this and this is better code.
[quoted text clipped - 56 lines]
> >> >
> >> >Gary
John Wilson - 22 Nov 2007 14:35 GMT
Slide numbers will update when slides are moved. It doesn't depend on how
they were added.
You can add a text box with a slide number to the master with vba
This adds a box at 10,10 width 40 and height 20
Sub slidnum()
Dim oshp As Shape
With ActivePresentation.SlideMaster.Shapes
Set oshp = .AddTextbox(msoTextOrientationHorizontal, 10, 10, 40, 20)
oshp.TextFrame.TextRange.InsertSlideNumber
End With
ActivePresentation.SlideMaster.HeadersFooters.SlideNumber.Visible = True
Set oshp = Nothing
End Sub

Signature
Amazing PPT Hints, Tips and Tutorials
http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk
> Thank You. It looks very similiar to something that I did a macro recorder
> on.
[quoted text clipped - 76 lines]
> > >> >
> > >> >Gary
Steve Rindsberg - 22 Nov 2007 17:03 GMT
> 1) I could put this in my Access VBA Code, but does this need to be in the
> point point file inorder for it to work correctly??? Like when a person
> opens up a PPT file, and move slide 3 to the top. Then the old 3 will not
> be page 1. When it do that even if the code was generated in Access???
> Or is the secret to it is allowing .SlideNumber to be visible in PPT that
> does it all for me????
If you use slidenumber placeholders, they update themselves automatically within PPT
with no further code needed. (see John's example code)
If you create your own slide numbers by adding text, then they're "dumb" text ... they
won't update, so you'd need to go to uncommon lengths to get things to work in PPT
when users rearrange slides. Don't go there unless you really Really REALLY need to.
> 2) Do you think I can place the SlideNumber at a differerent location by
> using VBA Code to indicate the location to place a .text and have the .text
> set to the .SlideNumber???
Again, see John's code for inserting the slidenumber "placeholder" ... but yep, you
can change the .Left, .Top and other coordinates of the shape that contains the slide
number.
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Brian Reilly, MVP - 24 Nov 2007 11:48 GMT
Gary,
As John and Steve have pointed out, once you set the SlideNumber
Placeholder it is a live update in PPT when user changes order. I was
just suggesting that since you are creating original file from code in
Access that you turn on the SlideNumber placeholder in PPT from that
code.
Brian Reilly, MVP
>Thank You. It looks very similiar to something that I did a macro recorder
>on.
[quoted text clipped - 76 lines]
>> >> >
>> >> >Gary