0 Members and 1 Guest are viewing this topic.
1) have a shape change style based on shape data input for the shape that matches name of or if not
Sub AddStyleListToShape1()Dim st As Style, stn As String, sh As Shape, nnn As Stringstn = ""For Each st In ThisDocument.Stylesstn = stn & ";" & st.NameNextSet sh = ActivePage.Shapes(1)If Not sh.SectionExists(visSectionProp, visExistsAnywhere) Thensh.AddSection visSectionProp ' add Shape Data sectionsh.AddRow visSectionProp, 0, 0 ' add new row to Shape Datash.Cells("prop.row_1.type").FormulaU = 1 ' make fixed style listsh.Cells("prop.row_1.format").FormulaU = Chr(34) & stn & Chr(34)sh.Cells("prop.row_1.value").FormulaU = "INDEX(1,Prop.Row_1.Format)"End IfEnd Sub