FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder
Products and Solutions
Support and Downloads
Company
Magazine
Contact Us
Language
MyWeisang

Account settings

Topic

Font colour in cell table

Home page Community Automation and VBA Font color in cell table

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #35140
    HerveM1234
    Participant

    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
    Participant

    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
    Participant

    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
    Participant

    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
    Participant

    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
    Participant

    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
    Participant

    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
    Participant

    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
    Participant

    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
    Participant

    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
    Participant

    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
    Participant

    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
    Participant

    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
    Participant

    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
    Participant

    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

Viewing 15 posts - 1 through 15 (of 22 total)
  • You must be logged in to reply to this topic.