How to detect/find particular layout is used in which slides using VBA in powerpoint - vba

How to find particular layout name/index is used by which slides?
As i want to delete some layouts from my theme which are already used by some slides. and apply the new one from them.

Debug.Print ActivePresentation.Slides(1).CustomLayout.Name
You can't delete any layouts that are in use by slides. You need to apply a different layout to any such slides, THEN delete the layout.

Go to the slide layout you want to get rid of, draw a big red X on that layout, then go back to normal view and you can easily see which slides have that particular layout as they will all show a big red X. Change these slides to a different layout and then you can delete the layout you don't want.

Related

how can distribute slides with flexible space between inside the swiperjs wrapper

I'm trying to map the following with swiperjs. actually quite easy. I define breakpoint how many swipes are displayed, but I don't want to define a fixed distance between the slides, I want the existing slides to be evenly distributed in the slide area. on the right and left side of the slide area without space, like flex row space between...
Here a test project, 3 slides, and a fixed width.
https://codesandbox.io/p/sandbox/swiper-slides-per-view-vue-forked-grycvr

Set One Slide Size/Orientation Without Changing Whole Presentation in PowerPoint using VBA [duplicate]

Making a powerpoint that's supposed to show a before and after of a website. Since it's currently a long website I'd rather make a single long slide to put it on (20" instead of 7.5"). But all the other slides in the presentation should be normal-sized.
I found Slide Size (Design ribbon, Customize section) but that resizes ALL slides.
You can't. You can only have one slide size and one orientation per presentation.
Are you projecting the presentation or delivering it on a laptop?
If so, the size is sort of irrelevant.
Regardless of the slide size, the projected/displayed image will never be longer or wider than the projector/display accepts.
Although you cannot use different sized slides in one PowerPoint file, for the actual presentation you can link several different files together to create a presentation that has different slide sizes.
The process to do so is as follows:
Create the two Powerpoints (with your desired slide dimensions)
They need to be properly filled in to have linkable objects and selectable slides
Select an object in the main PowerPoint to act as the hyperlink
Go to "Insert -> Links -> Action"
Select either the "Mouse Click" or the "Mouse Over" tab
Select "Hyperlink to:" and in the drop down menu choose "other PowerPoint Presentation"
Select the slide that you want to link to.
Any slide that isn't empty should appear in the "Hyperlink to Slide" dialog box
Repeat the Process in the second Presentation to link back to your main presentation
Reference to Office Support Page where this solution was first posted.
https://support.office.com/en-us/article/can-i-use-portrait-and-landscape-slide-orientation-in-the-same-presentation-d8c21781-1fb6-4406-bcd6-25cfac37b5d6?ocmsassetID=HA010099556&CorrelationId=1ac4e97f-bfe6-47b1-bab6-5783e78d126d&ui=en-US&rs=en-US&ad=US
True you can't have different sized slides. NOT true the size of you slide doesn't matter. It will size it to your resolution, but you can click on the magnifying icon(at least on PP 2013) and you can then scroll in all directions of your slide in original resolution.
if you want to shrink one slide for instance, add shapes to hide the unwanted background margins. you can set the shape color filling as the background (gray or black).
It's "ugly" but it works
true, this option is not available in any version of MS ppt.Now the solution is that You put your different sized slide in other file and put a hyperlink in first file.

Powerpoint VBA Positioning listview

I am trying to get 2 listview objects to work on a powerpoint slide. I can place them anywhere on the slide, but when I start the slideshow, 2 smaller copies appear in the upper-left corner. Text added to the listview appear in the upper-left boxes. I can't select the original listview either.
How can I prevent the 2 copies from showing up so I can work with the listviews I positioned on the slide?
The slide
http://prnt.sc/ectyx6
The Slideshow
http://prnt.sc/ectz8u
I looked into it a bit, and I think it's just a glitch with the Listview control.
From my tests, the actual Listview control was smaller then the original, but the top left position was correct (after the first time in reading/presentation view). I assume the they are smaller because it doesn't have a zoom property, and the slide is stretched to fit the window.
If you really want a Listview...which I hate to call into question, but think is warranted...then you can just Insert a Rectangle without a border over the Listview control to hide the original placeholder. The real Listview will still get drawn on top.
I think this is just the beginning of your troubles with a Listview control in PowerPoint...are you sure that you need it. Maybe linking to an Excel file with the Listview would be better, or some use of animation.

Copying shapes between PowerPoint 2007 presentations along with their animations

I programmatically copy the shapes of an entire slide to a new slide in another presentation by performing origShape.Copy and then newSlide.Shapes.Paste().
(copy/paste the entire slide is unfortunately not an option for me here)
My problem is that Animation effects get really warped. Some are lost, others appear in the wrong order.
I thought that maybe after copying all the shapes I'll go over origSlide.TimeLine and will copy each animation effect to newSlide.TimeLine with the corresponding Shapes.
Is there a way of copying Animation effects between shapes without manually setting each and every parameter? (there are LOTS of these).
When copying shape-by-shape to a new slide, naturally the order of the animations gets ruined.
If we had for example the following animation sequence:
Rectangle flying in
Triangle flying in
Rectangle flying out
And we copy first the Rectangle and then the Triangle to a new slide, we'll get first both animations of the rectangle and then of the triangle.
My mistake was trying to solve this disorder by using Shape.AnimationSettings.
BEWARE OF SHAPE.ANIMATIONSETTINGS!!
This Property is kept only for backward compatibility with old versions of PowerPoint. If you modify any of its fields, all animations of a shape except the first one get AUTOMATICALLY ERASED !
So, the solution is this:
Copy shape by shape to new slide (no animations are lost, just mis-ordered). Then use Slide.TimeLine to go over the animation Effects and order them correctly using Effect.MoveTo, or Sequence.Clone and Effect.Delete.

Animating rows in an NSTableView

Is there a simple way of animating rows in an NSTableView?
I'd like to be able to do something like flash a row, or fade out a row.
Essentially - to provide a bit of visual feedback when rows are added or removed.
Edited to add:
I'd had a quick look over Google before posting this; but I wanted to know if there was some way to do this that I'd missed other than drawing and animating parts of the table view myself.
To flash a row, there are a number of ways to go. You could just grab a cell and play with it's view, such as change the color of the background or font colors. You could also just select the cell and deselect it a few times, if you don't care about removing the existing selection from another cell. Or you could superimpose another view on top of the cell's view and use blend modes...
For animating the deletion, you could do the same as above, dimming the cell, or even move the view up and out, transform it so it shrinks down and move it over to a trash can and shrink it all the way down as it enters the trash. Then after the animation is done, you delete the row.