FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro-Support
Wissen
Community
Über Uns
Referenzen
Jobs
Allgemeiner Kontakt
Händlerverzeichnis
FlexPro-Support
DE
EN
FR
Placeholder
Produkte und Lösungen
Support und Downloads
Unternehmen
Magazin
Kontakt
Sprache
MyWeisang

Account Einstellungen

Topic

Font colour in cell table

Startseite ' Community ' Automation and VBA ' Font colour in cell table

Anzeigen von 15-Stellen - 1 bis 15 (von insgesamt 22)
  • Autor
    Beiträge
  • #35140
    HerveM1234
    Teilnehmer

    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.

    #35161
    HerveM1234
    Teilnehmer

    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.

    #35141
    Bernhard Kantz
    Teilnehmer

    The 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]

    #35152
    HerveM1234
    Teilnehmer

    Hi,

    Thanks for your reply.
    The font setting works very well

    The 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

    #35142
    HerveM1234
    Teilnehmer

    Hi,

    Thanks for your reply.
    The font setting works very well

    The 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

    #35156
    HerveM1234
    Teilnehmer

    Hi,

    Thanks for your reply.
    The font setting works very well

    The 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

    #35155
    HerveM1234
    Teilnehmer

    Hi,

    Thanks for your reply.
    The font setting works very well

    The 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

    #35154
    HerveM1234
    Teilnehmer

    Hi,

    Thanks for your reply.
    The font setting works very well

    The 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

    #35153
    HerveM1234
    Teilnehmer

    Hi,

    Thanks for your reply.
    The font setting works very well

    The 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

    #35143
    HerveM1234
    Teilnehmer

    Hi,

    Thanks for your reply.
    The font setting works very well

    The 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

    #35151
    HerveM1234
    Teilnehmer

    Hi,

    Thanks for your reply.
    The font setting works very well

    The 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

    #35150
    HerveM1234
    Teilnehmer

    Hi,

    Thanks for your reply.
    The font setting works very well

    The 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

    #35149
    HerveM1234
    Teilnehmer

    Hi,

    Thanks for your reply.
    The font setting works very well

    The 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

    #35148
    HerveM1234
    Teilnehmer

    Hi,

    Thanks for your reply.
    The font setting works very well

    The 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

    #35147
    HerveM1234
    Teilnehmer

    Hi,

    Thanks for your reply.
    The font setting works very well

    The 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

Anzeigen von 15-Stellen - 1 bis 15 (von insgesamt 22)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.