PC Review


Reply
Thread Tools Rate Thread

Does layout for a specific slide contain a title placeholder?

 
 
Dave Jenkins
Guest
Posts: n/a
 
      13th Oct 2008
I have a PPT 2007 presentation whose slides use any of a number of different
layouts. Most of the layouts contain placeholders for a slide title, some do
not. I'd like to determine (in VBA) whether the layout for a given slide
contains a placeholder for a slide title.

Is that info reachable? And if so, will the same set of code work for a PPT
2003 pres?

Thanks.
--
Dave Jenkins
K5KX
 
Reply With Quote
 
 
 
 
John Wilson
Guest
Posts: n/a
 
      13th Oct 2008
Do you need to know whether the slide has a title placeholder or whether the
parent layout does (it could have been deleted on the slide)?
--
Amazing PPT Hints, Tips and Tutorials

http://www.pptalchemy.co.uk/powerpoi...tutorials.html
_______________________________




"Dave Jenkins" wrote:

> I have a PPT 2007 presentation whose slides use any of a number of different
> layouts. Most of the layouts contain placeholders for a slide title, some do
> not. I'd like to determine (in VBA) whether the layout for a given slide
> contains a placeholder for a slide title.
>
> Is that info reachable? And if so, will the same set of code work for a PPT
> 2003 pres?
>
> Thanks.
> --
> Dave Jenkins
> K5KX

 
Reply With Quote
 
 
 
 
Dave Jenkins
Guest
Posts: n/a
 
      13th Oct 2008
The second - that's exactly what I'm trying to determine: Given that a slide
may not have a title placeholder on it, I want to know if the layout for the
slide _did_ contain a title placeholder, and if so I want to do some further
processing.


--
Dave Jenkins
K5KX


"John Wilson" wrote:

> Do you need to know whether the slide has a title placeholder or whether the
> parent layout does (it could have been deleted on the slide)?
> --
> Amazing PPT Hints, Tips and Tutorials
>
> http://www.pptalchemy.co.uk/powerpoi...tutorials.html
> _______________________________
>
>
>
>
> "Dave Jenkins" wrote:
>
> > I have a PPT 2007 presentation whose slides use any of a number of different
> > layouts. Most of the layouts contain placeholders for a slide title, some do
> > not. I'd like to determine (in VBA) whether the layout for a given slide
> > contains a placeholder for a slide title.
> >
> > Is that info reachable? And if so, will the same set of code work for a PPT
> > 2003 pres?
> >
> > Thanks.
> > --
> > Dave Jenkins
> > K5KX

 
Reply With Quote
 
Dave Jenkins
Guest
Posts: n/a
 
      13th Oct 2008
I'm thinking slide.master.shapes.hastitle may do it ...?

Ya think?
--
Dave Jenkins
K5KX


"John Wilson" wrote:

> Do you need to know whether the slide has a title placeholder or whether the
> parent layout does (it could have been deleted on the slide)?
> --
> Amazing PPT Hints, Tips and Tutorials
>
> http://www.pptalchemy.co.uk/powerpoi...tutorials.html
> _______________________________
>
>
>
>
> "Dave Jenkins" wrote:
>
> > I have a PPT 2007 presentation whose slides use any of a number of different
> > layouts. Most of the layouts contain placeholders for a slide title, some do
> > not. I'd like to determine (in VBA) whether the layout for a given slide
> > contains a placeholder for a slide title.
> >
> > Is that info reachable? And if so, will the same set of code work for a PPT
> > 2003 pres?
> >
> > Thanks.
> > --
> > Dave Jenkins
> > K5KX

 
Reply With Quote
 
Dave Jenkins
Guest
Posts: n/a
 
      13th Oct 2008
Phewey! Kind of like winding your watch with a pickaxe and a hacksaw isn't
it?

And anway, since I'm not concerned about the slide itself -- I'm just
wanting to find out if its *layout* contains a title placeholder -- the code
I mentioned above seems to work OK.

I'll let it ride until something falls apart in production and then worry
about it some more then.

Thanks, Steve.
--
Dave Jenkins
K5KX


"Steve Rindsberg" wrote:

> In article <79533316-67B8-4E6B-8545-(E-Mail Removed)>, Dave Jenkins
> wrote:
> > I'm thinking slide.master.shapes.hastitle may do it ...?
> >

>
> How about creating a new slide based on the same layout as the one you're
> querying and iterate through the shapes on it?
>
> -----------------------------------------
> Steve Rindsberg, PPT MVP
> PPT FAQ: www.pptfaq.com
> PPTools: www.pptools.com
> ================================================
>
>
>

 
Reply With Quote
 
John Wilson
Guest
Posts: n/a
 
      14th Oct 2008
Hi Dave

I think your code will usually work BUT it will maybe fail if a NEW custom
layout with no title is created?

Maybe this is more reliable but it won't work in 2003
Slide.CustomLayout.Shapes.HasTitle
--
Amazing PPT Hints, Tips and Tutorials

http://www.pptalchemy.co.uk/powerpoi...tutorials.html
_______________________________




"Dave Jenkins" wrote:

> Phewey! Kind of like winding your watch with a pickaxe and a hacksaw isn't
> it?
>
> And anway, since I'm not concerned about the slide itself -- I'm just
> wanting to find out if its *layout* contains a title placeholder -- the code
> I mentioned above seems to work OK.
>
> I'll let it ride until something falls apart in production and then worry
> about it some more then.
>
> Thanks, Steve.
> --
> Dave Jenkins
> K5KX
>
>
> "Steve Rindsberg" wrote:
>
> > In article <79533316-67B8-4E6B-8545-(E-Mail Removed)>, Dave Jenkins
> > wrote:
> > > I'm thinking slide.master.shapes.hastitle may do it ...?
> > >

> >
> > How about creating a new slide based on the same layout as the one you're
> > querying and iterate through the shapes on it?
> >
> > -----------------------------------------
> > Steve Rindsberg, PPT MVP
> > PPT FAQ: www.pptfaq.com
> > PPTools: www.pptools.com
> > ================================================
> >
> >
> >

 
Reply With Quote
 
Dave Jenkins
Guest
Posts: n/a
 
      14th Oct 2008
I beleive you're right, John - it will fail on a custom layout containing a
title placeholder when the target slide has none. It looks like the
slide.mastr returns only a non-custom layout, but that slide.customlayout
will return any layout - is that how you see it?

If so, that's pretty poor property naiming, don't you think?

At any rate - please expand on your 2003 comment, since this code must run
there, too. (My 2003 laptop is refusing to power up tonight, so I can't test
this.) Are you saying it will crash? I could put code in to do the
custompayout version of the test on 2007, and the slide.master version on
2003 to circumvent crashes. The downside is that the 2003 version won't be
100% accurate. I think I can live with that though.

OTOH, Steve's suggestion begins to ahve some merit. I could create a
slide,using the same layout as the original. If it has a title shape, and
the original does not, then that's what I'm looking for. Wouldn't be that
hard to code ... hmmm.
--
Dave Jenkins
K5KX


"John Wilson" wrote:

> Hi Dave
>
> I think your code will usually work BUT it will maybe fail if a NEW custom
> layout with no title is created?
>
> Maybe this is more reliable but it won't work in 2003
> Slide.CustomLayout.Shapes.HasTitle
> --
> Amazing PPT Hints, Tips and Tutorials
>
> http://www.pptalchemy.co.uk/powerpoi...tutorials.html
> _______________________________
>
>
>
>
> "Dave Jenkins" wrote:
>
> > Phewey! Kind of like winding your watch with a pickaxe and a hacksaw isn't
> > it?
> >
> > And anway, since I'm not concerned about the slide itself -- I'm just
> > wanting to find out if its *layout* contains a title placeholder -- the code
> > I mentioned above seems to work OK.
> >
> > I'll let it ride until something falls apart in production and then worry
> > about it some more then.
> >
> > Thanks, Steve.
> > --
> > Dave Jenkins
> > K5KX
> >
> >
> > "Steve Rindsberg" wrote:
> >
> > > In article <79533316-67B8-4E6B-8545-(E-Mail Removed)>, Dave Jenkins
> > > wrote:
> > > > I'm thinking slide.master.shapes.hastitle may do it ...?
> > > >
> > >
> > > How about creating a new slide based on the same layout as the one you're
> > > querying and iterate through the shapes on it?
> > >
> > > -----------------------------------------
> > > Steve Rindsberg, PPT MVP
> > > PPT FAQ: www.pptfaq.com
> > > PPTools: www.pptools.com
> > > ================================================
> > >
> > >
> > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New slide is always Title Slide layout Trainer Microsoft Powerpoint 9 26th Mar 2009 04:59 PM
Choosing Layout: Css-Layout or Table-Layout hpourfard@gmail.com Microsoft ASP .NET 1 19th Jun 2006 11:06 AM
a title, img title, fp-title =?Utf-8?B?QkIgSXZlcnNvbg==?= Microsoft Frontpage 1 13th Apr 2004 02:10 PM
I have windows XP Home, in windows explorer a folder with mp3s used to show a popup with title and Bitrate now it shows Type, Author, Title, Date Modified, and Size How can I get it back to Title and bitrate?? I use List, not Details jon@AZ.net Windows XP Help 3 30th Dec 2003 09:44 PM
power point and copying a slide in to another slide, making 7 miniatures within a specific slide =?Utf-8?B?cm9nZ2llNTc=?= Microsoft Powerpoint 1 28th Nov 2003 09:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:25 AM.