Hello all,
I'm trying to set the red color on a text I have added with the following code taken from VBA help:
Property Color( ) As long
Returns or sets the color of the drawing text.
Example:
This example sets the Color type of the MyText drawing text to red
redCol =-16776961 'Encoded RGBA color within long integer (R=255 G=0 B=0 A=255)
MyText.Color = redCol
Code I'm trying:
MyText.SetFontSize 0, 0, 20
redCol = -16776961
MyText.Color = redCol 'ERROR
SetFontSize works perfectly but the line for the colour doesn't...
Another thing I've tried is this code, based on a search I have done in the forum, but doesn't work neither:
MyText.visProperties1.SetRealColor 255, 0, 0, 1
Any ideas?
(I'm coding on VBA)
I'm trying to set the red color on a text I have added with the following code taken from VBA help:
Property Color( ) As long
Returns or sets the color of the drawing text.
Example:
This example sets the Color type of the MyText drawing text to red
redCol =-16776961 'Encoded RGBA color within long integer (R=255 G=0 B=0 A=255)
MyText.Color = redCol
Code I'm trying:
MyText.SetFontSize 0, 0, 20
redCol = -16776961
MyText.Color = redCol 'ERROR
SetFontSize works perfectly but the line for the colour doesn't...
Another thing I've tried is this code, based on a search I have done in the forum, but doesn't work neither:
MyText.visProperties1.SetRealColor 255, 0, 0, 1
Any ideas?
(I'm coding on VBA)