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
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 ?
VB might differ in syntax details, but I think you are building the string the wrong way:
"Bold" & vbCr & "Italic"
but how can i set the font color ?
In your code there's a space after TextFrameTool, maybe that's the problem.