From: Charlie on 28 Apr 2010 11:29 I reset slides with a custom layout by assigning them to themselves... mySlide.CustomLayout = mySlide.CustomLayout Luca Brasi wrote: Reset slide layout in VBA (PP2007) 14-Sep-07 In PP2007 I can reset a slide to the definitions of its custom layout manually (tab Home, group Slides, button Reset). Is there a way to do such a reset in VBA? Thanks for any hints. Previous Posts In This Thread: On Friday, September 14, 2007 7:51 AM Luca Brasi wrote: Reset slide layout in VBA (PP2007) In PP2007 I can reset a slide to the definitions of its custom layout manually (tab Home, group Slides, button Reset). Is there a way to do such a reset in VBA? Thanks for any hints. On Friday, September 14, 2007 8:12 AM john AT technologytrish.co DOT uk wrote: Does this work? Does this work? Dim oLay As PpSlideLayout oLay = ActiveWindow.Selection.SlideRange(1).Layout ActiveWindow.Selection.SlideRange(1).Layout = oLay You maybe want to look at "Hands Off my Master" too http://www.pptalchemy.co.uk/HandOff.html -- Amazing PPT Hints, Tips and Tutorials- http://www.PPTAlchemy.co.uk http://www.technologytrish.co.uk email john AT technologytrish.co.uk "Luca Brasi" wrote: On Friday, September 14, 2007 9:05 AM Luca Brasi wrote: John, thanks for your message but it don't work. John, thanks for your message but it don't work. Anyway, In my opinion the "Layout" property of the slide object shouldn't be used anymore in PP2007, as PP2007 uses the new Custom Layout concept. If you create some new custom slide layouts, the "Layout" property just returns ppLayoutCustom which isn't really helpful. John Wilson wrote: On Friday, September 14, 2007 11:31 AM Shyam Pillai wrote: Luca,PPT 2007 requires a slightly different approach. Luca, PPT 2007 requires a slightly different approach. All the change it needs is to get the reference to the custom layout and it can be reapplied. Take a look at this page. http://skp.mvps.org/2007/ppt002.htm -- Regards, Shyam Pillai Animation Carbon: Copy/Paste/Share animation libraries. www.animationcarbon.com "Luca Brasi" <leluc@_NOSPAM_gmx.ch> wrote in message news:OW4v6$s9HHA.3900(a)TK2MSFTNGP02.phx.gbl... On Saturday, September 15, 2007 5:44 AM john AT technologytrish.co DOT uk wrote: Thanks Shyam (and Luca) I missed the ref to 2007. Thanks Shyam (and Luca) I missed the ref to 2007. I'll add that info to my personal KB!! -- Amazing PPT Hints, Tips and Tutorials- http://www.PPTAlchemy.co.uk http://www.technologytrish.co.uk email john AT technologytrish.co.uk "Shyam Pillai" wrote: On Sunday, September 16, 2007 8:41 AM Steve Rindsberg wrote: Hi Luca,Glad you showed up again. Hi Luca, Glad you showed up again. This is re your earlier question about title masters. If there's no Title Slide layout present, you can do ActivePresentation.AddTitleMaster In earlier versions of PPT, this adds a new title master. In 2007 it adds a new Title Slide layout. Now assuming you already have another layout that you want to designate as the "Title Master", you could, I think, use the above, then copy all of the shapes from your layout to the new one and you're done. ----------------------------------------- Steve Rindsberg, PPT MVP PPT FAQ: www.pptfaq.com PPTools: www.pptools.com ================================================ On Sunday, September 16, 2007 2:47 PM Luca Brasi wrote: Re: Reset slide layout in VBA (PP2007) Thanks for this info Steve. Steve Rindsberg wrote: On Sunday, September 16, 2007 3:20 PM Luca Brasi wrote: Thanks Shyam, but I know that I can reapply a layout to a slide. Thanks Shyam, but I know that I can reapply a layout to a slide. My question was about doing a "Reset" of a slide (like using tab Home, group Slides, button Reset). In Office 2007 reapplying a layout and reseting a slide are two different functionalities. In short, resetting a slide does more than just reapplying a layout. For example it also sets back the formatting of placeholder shapes (e.g. font size). After some more testing, I'm almost certain that no "easy" Reset function in VBA exists (but maybe I missed something...?). I helped myself now by creating a procedure that copies the formatting of all placeholders in the custom layout to their respective shapes objects on the slide. Thanks anyway for all help. Shyam Pillai wrote: Submitted via EggHeadCafe - Software Developer Portal of Choice Free Online Courses Available for Eggheadcafe.com Users http://www.eggheadcafe.com/tutorials/aspnet/5261083e-6e03-4b25-8728-fc3cf6855293/free-online-courses-avail.aspx
|
Pages: 1 Prev: Pivot charts in powerpoint Next: Show previous animation button |