|
||
---|---|---|
PowerPoint tips, hints and tutorials that will change your presentations for ever! | ||
Jigsaws |
SlideID in PowerPoint Usually when referencing slides in PowerPoint vba people use the SlideIndex property. This is easy because it is directly related to the slide number which is visible in the GUI. Note that the SlideIndex does not necessarily equate to the slide number. If you start numbering from eg 2 then the first slide will still have an index of 1. Typical Code using SlideIndex Sub calloutadd() This adds a callout to slide with SlideIndex = 6 at the Left and Top values specified and with height and Width =10 / It works fine UNTIL you reorder or add or delete slides so that the slide is no longer the sixth slide. This is where you need SlideID's SlideID Powerpoint assigns a unique SlideID to every new slide. The first slide added will have an ID of 256 and every new slide will have an ID one higher than the current highest value. The SlideID is not affected by moving slides or adding or deleting other slides. If you write code to change a slide based on the ID it will always work (assuming the SlideID exists) The same code assuming that slide 6 has an ID of 261 Sub calloutadd2() How to Determine the SlideID This code will mark each slide with its ID. Running just the delete code will remove the markings. Sub addID() Don't know how to use vba? Go here. |
|
Articles on your favourite sport Free Microsoft PowerPoint Advice, help and tutorials, Template Links |