Topic
Font colour in cell table
Page d'accueil ' Communauté ' Automation et VBA ' Couleur de la police dans le tableau des cellules
- Ce sujet contient 21 réponses, 2 participants et a été mis à jour pour la dernière fois par HerveM1234, le il y a 11 années et 7 mois.
-
AuteurMessages
-
22.10.2013 à 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 à 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 à 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 à 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 à 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 à 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 à 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 à 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 à 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 à 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 à 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 à 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 à 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 à 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 à 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
-
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.