Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi,
guys
i want to change the font color of text object using macro
thanks in advance
Nishit,
Try this,
Sub Test
set mytext = ActiveDocument.GetSheetObject("TX01")
prop = mytext.GetProperties
prop.Layout.TextColor.PrimaryCol.Col = RGB(255,255,50)
mytext.SetProperties prop
End sub
Hi Nishit,
As an alternative to using a macro consider controlling the font colour with a variable. You can set the value of the variable using triggers.
Cheers
Andrew
Nishit,
Try this,
Sub Test
set mytext = ActiveDocument.GetSheetObject("TX01")
prop = mytext.GetProperties
prop.Layout.TextColor.PrimaryCol.Col = RGB(255,255,50)
mytext.SetProperties prop
End sub