sri91
Mechanical
- Aug 29, 2019
- 43
Hi Everyone,
I am trying to set the parameters 'Font size' and 'color' in the texts of a drawing table.
I am using the below code.
What ever the text size I give, it is taking zero(0).
Can you please suggest me.
drwTbls(drwTblNum).SetCellString rowCount, 2, wrksht.Cells(j, 1)
drwTbls(drwTblNum).SetCellAlignment rowCount, 2, CatTableMiddleCenter
Set currText = drwTbls(drwTblNum).GetCellObject(rowCount, 2)
currText.SetParameterOnSubString catFontSize, 0, 0, 0.075
Dim txtProps1 As DrawingTextProperties
Set txtProps1 = currText.TextProperties
currText.SetFontSize 0, 0, 0.095
currText.TextProperties.Color = vbGreen
Thanks in advance
SURYASRI
I am trying to set the parameters 'Font size' and 'color' in the texts of a drawing table.
I am using the below code.
What ever the text size I give, it is taking zero(0).
Can you please suggest me.
drwTbls(drwTblNum).SetCellString rowCount, 2, wrksht.Cells(j, 1)
drwTbls(drwTblNum).SetCellAlignment rowCount, 2, CatTableMiddleCenter
Set currText = drwTbls(drwTblNum).GetCellObject(rowCount, 2)
currText.SetParameterOnSubString catFontSize, 0, 0, 0.075
Dim txtProps1 As DrawingTextProperties
Set txtProps1 = currText.TextProperties
currText.SetFontSize 0, 0, 0.095
currText.TextProperties.Color = vbGreen
Thanks in advance
SURYASRI