This results in a different count of placeholders on the Master and on the slides, and because these placeholders can be in the middle of the collection, the indexes don't align. They are included in the placeholder collection on the slide master, but when an individual slide is created they become their own properties of the slide (under the. The problem is the footer, page number, and date placeholders on the slide master. 'Set ret = (i) 'This observes same failure that the index of the collections is not the same 'Set ret = (sName) 'This returns an error/specified shape name does not exist 'Set ret = (i) 'the index of the Shapes.Placeholders is NOT the same Set ret = shp 'This will return the CustomLayout.Placeholder, which affects ALL slides ' But I need to return the SHAPE in the Slide.Shapes collection This is the function I have so far: Function GetShapeByPlaceholderName(sName As String, sld As Slide) As Objectįor Each shp In In any case, I'm hoping to avoid a "workaround" in favor of a more proper way to do this, if such a thing exists. I tried, and it fails for the same reasons (i.e., the CustomLayout.Shape is somehow not the "same" shape as the Slide.Shape.). Thought I might be able to manipulate the custom layout to add a Tag to the shapes. Shapes.Placeholders, it appears that they are not maintaining the same index, i.e. If instead, I index the collection, and attempt to return the shape at that index position, from the slide's. HOWEVER if I return this shape, it will be the custom layout placeholder, which affects ALL slides on this layout (e.g., if I add text to this placeholder, it updates all slides using this layout!). , I can easily identify the particular placeholder by it's. For instance, when I iterate the slide's. The challenge seems to be how the custom layout is related to the actual slide. Name because this is not known in advance, even when creating slides from template/layout. I am attempting to create a function that will return a specific shape, based on the known Name property assigned to the object.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |