7/26/2023 0 Comments Powerpoint compress images 2010![]() ![]() So it boils down to a pretty simple question: Is there a way for my code to find out whether or not the "Apply only." box is checked, before I use SendKeys? Of another clever trick I can use to make sure that option is unchecked before I send " myshape. But now, if you run the second macro, the dialog comes up with the "Apply box" checked (I assume PowerPoint is trying to help me out by remembering that's what I used last time), and my %a actually checks that box, so I don't get the expected second round of compression. When you run the first macro, if compression has not already been done on this deck, the dialog defaults with the "Apply only" box checked, so the SendKeys unchecks it and it shrinks all images and works fine. But the second macro doesn't shrink the presentation size at all.īy inserting a MsgBox and looking at the state of the Compress Pictures dialog, I was able to figure out why. Search: Compress Media Files In Powerpoint 2010. It doesnt matter which picture you double-click, since all of them will open the appropriate tab. If your PowerPoint file isnt yet open, first open it by double-clicking it. Most users will use the 150, save as, then realize they want to go further, so with the 150 version still open they will run the Compress96 macro and save that. Doing so will open the Format tab at the top of the PowerPoint window. So I wrote an identical macro except it chooses email (%e) resolution. Select the checkbox to Delete Cropped Areas of Pictures to. Picture Quality drop down and choose Best for Sending in Email (96 ppi). Compress Pictures (to the right of the Transparency icon). Picture Format ribbon at the top of the screen. I realized that some users may not think their file size has been shrunk enough, so they might want to compress again, from 150 down to 96dpi. Select a slide that contains an image or picture. jpg to the current slide, select it, call the dialog, uncheck "Apply only to this picture," set the compression level, and enter to execute. So to make this work under all conditions, my approach is to add a small 300 dpi. Through experimenting, I learned that 1) A shape must be selected before you can invoke the Compress Pictures dialog, 2) The dialog will only present compression options smaller than the select picture, 3) if you un-check "Apply only to this picture" the command will also compress slide background images (which is what I want). Launch PowerPoint 2010 program and open Slideshow presentation which should be compressed for less file size. From everything I've read, there is no method for this in VBA so I'm using SendKeys. PowerPoint file compression to reduce size 1. Using PowerPoint 2010, I'm writing a macro to mimick PowerPoint's "compress pictures" function. When resizing an image, it is important to lock the aspect ratio so that the ratio of length and width remains constant.
0 Comments
Leave a Reply. |