Consulting

Results 1 to 3 of 3

Thread: GUID to specify table Medium Style 2 Accent 6

  1. #1

    GUID to specify table Medium Style 2 Accent 6

    I am generating PowerPoint multiple slides using VBA, and each slide features an identical table. However, I want to alternate visual appearance on every other slide to help distinguish “odd” and “even” slides for the presenter.
    My searches into standards for styles within tables under DrawingML have discovered some pertinent information.
    The following GUID when applied as </tblStyle> produces “Medium Style 2 – Accent 1”
    {5C22544A-7EE6-4342-B048-85BDC9FD1C3A}

    Similarly, this GUID when applied as </tblStyle> produces “Medium Style 2 – Accent 3”
    {F5AB1C69-6EDB-4FF4-983F-18BD219EF322}

    I am trying to determine the GUID required to produce “Medium Style 2 – Accent 6”

    My goal is to add this ID to a VBA line:
    Selection.ShapeRange.Table.ApplyStyle (“{+ + + + + insert GUID + + + + +}”), True

    Can anyone enlighten me? Many thanks in advance.

  2. #2
    VBAX Master
    Joined
    Feb 2007
    Posts
    1,963
    Location
    I believe it would be

    {93296810-A885-4BE3-A3E7-6D5BEEA58F35}

    To get the ID for a selected table

    Debug.Print ActiveWindow.Selection.ShapeRange(1).Table.Style.Id
    Debug.Print ActiveWindow.Selection.ShapeRange(1).Table.Style.Name
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

  3. #3
    John: Well it turns out you believe correctly!

    It worked out perfectly and achieved just what I wanted. Thanks for your benevolent input! Indeed you were a most valuable person for my tiny project.

    Many thanks again,

    Ian

Tags for this Thread

Posting Permissions

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