Topic
Font colour in cell table
Home page › Community › Automation and VBA › Font color in cell table
- This topic has 21 replies and 2 voices and was last updated 11 years, 7 months ago ago by HerveM1234.
-
AuthorPosts
-
22.10.2013 at 14:03 #35140HerveM1234Participant
Hi,
Is it possible to modify the font colour in a cell table depending of the value to display ?
For example, values calculated above 100 in red and below 100 in green.
Thanks for your help.22.10.2013 at 14:03 #35161HerveM1234ParticipantHi,
Is it possible to modify the font colour in a cell table depending of the value to display ?
For example, values calculated above 100 in red and below 100 in green.
Thanks for your help.24.10.2013 at 08:50 #35141Bernhard KantzParticipantThe only way to modify the font color of a cell table is to use VBA (in FlexPro Professional). You can check if the value is out of limit and then change the color. Here is an example how to change the font properties of cell nr 3:
[code]Dim myTable As CellTable
Set myTable = ActiveDatabase.ActiveFolder.Object(“CellTable”, fpObjectTypeCellTable)
Dim myCell As CellTableCell
Set myCell = myTable.Cells(3)
With myCell.Text.Font
.Italic = False
.Name = “Arial”
.Size = 12
.Color = &H8000000F
End With[/code]25.10.2013 at 11:23 #35152HerveM1234ParticipantHi,
Thanks for your reply.
The font setting works very wellThe problem I have is the value : myCell.Text gives something like :%{myfpscript_expression}
How in VBA can I compare this “value” to an integer or an string for example ?Thanks again
25.10.2013 at 11:23 #35142HerveM1234ParticipantHi,
Thanks for your reply.
The font setting works very wellThe problem I have is the value : myCell.Text gives something like :%{myfpscript_expression}
How in VBA can I compare this “value” to an integer or an string for example ?Thanks again
25.10.2013 at 11:23 #35156HerveM1234ParticipantHi,
Thanks for your reply.
The font setting works very wellThe problem I have is the value : myCell.Text gives something like :%{myfpscript_expression}
How in VBA can I compare this “value” to an integer or an string for example ?Thanks again
25.10.2013 at 11:23 #35155HerveM1234ParticipantHi,
Thanks for your reply.
The font setting works very wellThe problem I have is the value : myCell.Text gives something like :%{myfpscript_expression}
How in VBA can I compare this “value” to an integer or an string for example ?Thanks again
25.10.2013 at 11:23 #35154HerveM1234ParticipantHi,
Thanks for your reply.
The font setting works very wellThe problem I have is the value : myCell.Text gives something like :%{myfpscript_expression}
How in VBA can I compare this “value” to an integer or an string for example ?Thanks again
25.10.2013 at 11:23 #35153HerveM1234ParticipantHi,
Thanks for your reply.
The font setting works very wellThe problem I have is the value : myCell.Text gives something like :%{myfpscript_expression}
How in VBA can I compare this “value” to an integer or an string for example ?Thanks again
25.10.2013 at 11:23 #35143HerveM1234ParticipantHi,
Thanks for your reply.
The font setting works very wellThe problem I have is the value : myCell.Text gives something like :%{myfpscript_expression}
How in VBA can I compare this “value” to an integer or an string for example ?Thanks again
25.10.2013 at 11:23 #35151HerveM1234ParticipantHi,
Thanks for your reply.
The font setting works very wellThe problem I have is the value : myCell.Text gives something like :%{myfpscript_expression}
How in VBA can I compare this “value” to an integer or an string for example ?Thanks again
25.10.2013 at 11:23 #35150HerveM1234ParticipantHi,
Thanks for your reply.
The font setting works very wellThe problem I have is the value : myCell.Text gives something like :%{myfpscript_expression}
How in VBA can I compare this “value” to an integer or an string for example ?Thanks again
25.10.2013 at 11:23 #35149HerveM1234ParticipantHi,
Thanks for your reply.
The font setting works very wellThe problem I have is the value : myCell.Text gives something like :%{myfpscript_expression}
How in VBA can I compare this “value” to an integer or an string for example ?Thanks again
25.10.2013 at 11:23 #35148HerveM1234ParticipantHi,
Thanks for your reply.
The font setting works very wellThe problem I have is the value : myCell.Text gives something like :%{myfpscript_expression}
How in VBA can I compare this “value” to an integer or an string for example ?Thanks again
25.10.2013 at 11:23 #35147HerveM1234ParticipantHi,
Thanks for your reply.
The font setting works very wellThe problem I have is the value : myCell.Text gives something like :%{myfpscript_expression}
How in VBA can I compare this “value” to an integer or an string for example ?Thanks again
-
AuthorPosts
- You must be logged in to reply to this topic.