Consulting

Results 1 to 3 of 3

Thread: how to get the number of levels in SlideMaster correctly

  1. #1
    VBAX Regular
    Joined
    Dec 2020
    Posts
    6
    Location

    how to get the number of levels in SlideMaster correctly

    (PowerPoint 2019)
    There are 9 levels in SlideMaster but the code below print only just 5.
    what is the problem?

    ActivePresentation.Designs(1).SlideMaster.TextStyles(ppDefaultStyle).Levels .Count

  2. #2
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,093
    Location
    In modern versions (later than 2003) just count the paragraphs in the text placeholder (normally shape 2)
    ActivePresentation.designs(1).SlideMaster.Shapes(2).TextFrame2.TextRange.Pa ragraphs.Count
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

  3. #3
    VBAX Regular
    Joined
    Dec 2020
    Posts
    6
    Location
    Thank you so much for your perfect reply

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •