3 Replies Latest reply on Jun 13, 2009 10:04 PM by Peter Kahrel

    text style : set bold + italic

    goh6613

      hi

       

      how can i set a selected test to "bold + italic"

       

      Dim TextFrameTool As InDesign.TextFrame = Page.TextFrames.Add

       

      i try like this but fail

      TextFrameTool .ParentStory.FontStyle = "Bold" & vbCr & "Italic"

       

      and to set text color

      e.g

      TextFrameTool .ParentStory.FillColor = app.ActiveDocument.Swatches.Item("C=15 M=100 Y=100 K=0");

       

      for the color one, it return me error and i not sure about this code is correct or not

       

      can someone help me in this ?

       

      thanks