I need to be able to find the Layout Name in PowerPoint so I can reference it in a VB Script.
I will be using the following code:
ActiveWindow.Selection.SlideRange.Layout = ppLayout"LAYOUT NAME"
I have built custom layouts in PowerPoint 2007 based upon the original layouts. For example I took the 'Blank' Template and renamed it 'Navigation' and changed the colors/fonts/etc.
When I try to change the layout of the current slide to the new Navigation layout with the following code I get a debug error (Slide Unknown: Invalid enumeration value)::
ActiveWindow.Selection.SlideRange.Layout = ppLayoutNavigation
When I enter the the following code, I am able to change my current slide layout to the new Navigation layout
ActiveWindow.Selection.SlideRange.Layout = ppLayoutBlank
It appears even though I have renamed the Blank Layout to Navigation it is still coded as Blank in order to reference it in script. I have numerous slide layouts with new names, and I am not sure what the appropriate code name to use is.
Does anyone know how to find out the name of the layout to use in the macro? It is not as simple of checking the name of the slide layout in the Slide Master.