PDA

View Full Version : [SOLVED:] GUID to specify table Medium Style 2 Accent 6



Brit_ID_inBC
02-01-2021, 11:45 AM
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.

John Wilson
02-02-2021, 03:53 AM
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

Brit_ID_inBC
02-02-2021, 03:16 PM
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,:yes

Ian